deps-fix
Some checks failed
Deploy to core / deploy (push) Failing after 2m13s

This commit is contained in:
2024-01-28 16:33:45 +03:00
parent ebdfdb2613
commit 7f203bf900
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ class ViewedStorage:
analytics_client: BetaAnalyticsDataClient | None = None
auth_result = None
disabled = False
updated = int(time.time())
start_date = int(time.time())
@staticmethod
async def init():
@@ -55,7 +55,8 @@ class ViewedStorage:
self.load_precounted_views()
if os.path.exists(VIEWS_FILEPATH):
self.updated = os.path.getctime(VIEWS_FILEPATH)
file_timestamp = os.path.getctime(VIEWS_FILEPATH)
self.start_date = datetime.fromtimestamp(file_timestamp).strftime('%Y-%m-%d')
# Запуск фоновой задачи
asyncio.create_task(self.worker())