add_author_stat-fix+fmt

This commit is contained in:
2024-03-06 12:25:55 +03:00
parent 70589a35da
commit 9f881c0641
15 changed files with 241 additions and 138 deletions

View File

@@ -73,7 +73,9 @@ class ViewedStorage:
if now_date == self.start_date:
logger.info(' * Данные актуализованы!')
else:
logger.info(f' * Файл просмотров {VIEWS_FILEPATH} создан: {self.start_date}')
logger.info(
f' * Файл просмотров {VIEWS_FILEPATH} создан: {self.start_date}'
)
with open(VIEWS_FILEPATH, 'r') as file:
precounted_views = json.load(file)