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
+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