fixes-refactoring-and-views
This commit is contained in:
@@ -2,7 +2,7 @@ import asyncio
|
||||
from base.orm import local_session
|
||||
from orm.reaction import ReactionKind, Reaction
|
||||
from services.zine.topics import TopicStorage
|
||||
from services.stat.views import Stat
|
||||
from services.stat.views import ViewStat
|
||||
|
||||
|
||||
def kind_to_rate(kind) -> int:
|
||||
@@ -36,7 +36,7 @@ class ReactedStorage:
|
||||
@staticmethod
|
||||
async def get_shout_stat(slug):
|
||||
return {
|
||||
"viewed": await Stat.get_shout(slug),
|
||||
"viewed": await ViewStat.get_shout(slug),
|
||||
"reacted": len(await ReactedStorage.get_shout(slug)),
|
||||
"commented": len(await ReactedStorage.get_comments(slug)),
|
||||
"rating": await ReactedStorage.get_rating(slug),
|
||||
|
Reference in New Issue
Block a user