auth.orm-fix
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
Untone 2025-05-28 18:51:49 +03:00
parent 301145fcff
commit 6c0d96e7ac

View File

@ -94,7 +94,7 @@ async def get_authors_with_stats(limit=50, offset=0, by: Optional[str] = None, c
# Обработка словаря параметров сортировки # Обработка словаря параметров сортировки
from sqlalchemy import asc, desc, func from sqlalchemy import asc, desc, func
from orm.shout import ShoutAuthor from orm.shout import ShoutAuthor
from orm.author import AuthorFollower from auth.orm import AuthorFollower
# Checking for order field in the dictionary # Checking for order field in the dictionary
if "order" in by: if "order" in by:
@ -163,7 +163,7 @@ async def get_authors_with_stats(limit=50, offset=0, by: Optional[str] = None, c
elif stats_sort_field == "followers": elif stats_sort_field == "followers":
# Sorting by the number of followers # Sorting by the number of followers
from sqlalchemy import func from sqlalchemy import func
from orm.author import AuthorFollower from auth.orm import AuthorFollower
subquery = ( subquery = (
select( select(