query-fix

This commit is contained in:
2024-01-26 13:28:49 +03:00
parent 59dec8cad6
commit e7e9089b7c
4 changed files with 27 additions and 27 deletions

View File

@@ -89,7 +89,7 @@ class ViewedStorage:
async def update_pages():
"""Запрос всех страниц от Google Analytics, отсортированных по количеству просмотров"""
self = ViewedStorage
if not self.disabled and GOOGLE_GA_VIEW_ID:
if not self.disabled and bool(GOOGLE_GA_VIEW_ID):
logger.info(' ⎧ Обновление данных просмотров от Google Analytics ---')
try:
start = time.time()