mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Added date in output file
This commit is contained in:
committed by
Nikhil Badyal
parent
378a77f360
commit
710a2af7b9
@@ -67,7 +67,7 @@ repos:
|
||||
args:
|
||||
- '--strict'
|
||||
- "--config=pyproject.toml"
|
||||
additional_dependencies: [ types-requests,types-beautifulsoup4 ]
|
||||
additional_dependencies: [ types-requests,types-beautifulsoup4,types-pytz ]
|
||||
|
||||
ci:
|
||||
autofix_commit_msg: |
|
||||
|
||||
@@ -5,5 +5,6 @@ google-play-scraper==1.2.6
|
||||
lastversion==3.5.2
|
||||
loguru==0.7.2
|
||||
pre-commit==3.7.0
|
||||
pytz==2024.1
|
||||
requests==2.31.0
|
||||
tqdm==4.66.2
|
||||
|
||||
+5
-1
@@ -4,9 +4,11 @@ import concurrent
|
||||
import hashlib
|
||||
import pathlib
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from datetime import datetime
|
||||
from typing import Self
|
||||
|
||||
from loguru import logger
|
||||
from pytz import timezone
|
||||
|
||||
from src.config import RevancedConfig
|
||||
from src.downloader.sources import apk_sources
|
||||
@@ -78,7 +80,9 @@ class APP(object):
|
||||
-------
|
||||
a string that represents the output file name for an APK file.
|
||||
"""
|
||||
return f"Re-{self.app_name}-{slugify(self.app_version)}-output.apk"
|
||||
current_date = datetime.now(timezone("Asia/Kolkata"))
|
||||
formatted_date = current_date.strftime("%Y%b%d_%I%M%p").upper()
|
||||
return f"Re-{self.app_name}-{slugify(self.app_version)}-{formatted_date}-output.apk"
|
||||
|
||||
def __str__(self: "APP") -> str:
|
||||
"""Returns the str representation of the app."""
|
||||
|
||||
Reference in New Issue
Block a user