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

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

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")