logs-fix
All checks were successful
Deploy on push / deploy (push) Successful in 23s

This commit is contained in:
Untone 2024-04-27 13:30:19 +03:00
parent 9dc986b08c
commit a992941aef
2 changed files with 12 additions and 2 deletions

View File

@ -66,7 +66,15 @@ root_logger = logging.getLogger()
root_logger.setLevel(logging.DEBUG)
root_logger.addHandler(stream)
ignore_logs = ["_trace", "httpx", "_client", "_trace.atrace", "aiohttp", "_client"]
ignore_logs = [
"_trace",
"httpx",
"_client",
"_trace.atrace",
"aiohttp",
"_client",
"._make_request",
]
for lgr in ignore_logs:
loggr = logging.getLogger(lgr)
loggr.setLevel(logging.INFO)

View File

@ -65,7 +65,9 @@ class ViewedStorage:
try:
if os.path.exists(VIEWS_FILEPATH):
start_date_int = os.path.getmtime(VIEWS_FILEPATH)
start_date_str = datetime.fromtimestamp(start_date_int).strftime('%Y-%m-%d')
start_date_str = datetime.fromtimestamp(start_date_int).strftime(
"%Y-%m-%d"
)
self.start_date = start_date_str
now_date = datetime.now().strftime("%Y-%m-%d")