This commit is contained in:
2022-11-21 07:36:40 +03:00
parent ebb3fe211d
commit df224fc209
4 changed files with 15 additions and 17 deletions

View File

@@ -1,12 +0,0 @@
from base.orm import local_session
from orm.user import User
from orm.shout import ShoutAuthor
class AuthorsStorage:
@staticmethod
async def get_all_authors():
with local_session() as session:
query = session.query(User).join(ShoutAuthor)
result = query.all()
return result