This commit is contained in:
parent
301145fcff
commit
6c0d96e7ac
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user