schema-upgrade
Some checks failed
deploy / deploy (push) Failing after 5s

This commit is contained in:
Untone 2024-01-22 21:38:38 +03:00
parent a3688ba29a
commit 0ebea28cce
2 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,7 @@ type AuthorStat {
rating_shouts: Int
rating_comments: Int
commented: Int
viewed: Int
}
type Author {
@ -172,6 +173,7 @@ type TopicStat {
shouts: Int!
followers: Int!
authors: Int!
viewed: Int
}
type Topic {

View File

@ -119,7 +119,7 @@ class ViewedStorage:
with open("/dump/views.json", "r") as file:
precounted_views = json.load(file)
self.views_by_shout.update(precounted_views)
logger.info(f" * {len(precounted_views)} pre-counted views loaded successfully.")
logger.info(f" * {len(precounted_views)} pre-counted shouts' views loaded successfully.")
except Exception as e:
logger.error(f"Error loading pre-counted views: {e}")