refactored

This commit is contained in:
2022-08-11 08:53:14 +03:00
parent 158cb20717
commit 8aec6c6e07
46 changed files with 116 additions and 418 deletions

View File

@@ -1,16 +1,12 @@
from sqlalchemy import and_, desc, func, select
from sqlalchemy.orm import selectinload, joinedload
from orm.reaction import Reaction
from orm.base import local_session
from orm.shout import Shout, ShoutReactionsFollower
from base.orm import local_session
from orm.shout import ShoutReactionsFollower
from orm.user import User
from resolvers.base import mutation, query
from base.resolvers import mutation, query
from auth.authenticate import login_required
from datetime import datetime
from storages.reactions import ReactionsStorage
from storages.shoutscache import ShoutsCache
from storages.viewed import ViewedStorage
from typing import List
def reactions_follow(user, slug, auto=False):
with local_session() as session: