Improve topic sorting: add popular sorting by publications and authors count
This commit is contained in:
@@ -31,13 +31,17 @@ from resolvers.draft import (
|
||||
update_draft,
|
||||
)
|
||||
from resolvers.editor import (
|
||||
# delete_shout,
|
||||
unpublish_shout,
|
||||
# update_shout,
|
||||
)
|
||||
from resolvers.feed import (
|
||||
load_shouts_authored_by,
|
||||
load_shouts_coauthored,
|
||||
load_shouts_discussed,
|
||||
load_shouts_feed,
|
||||
load_shouts_followed_by,
|
||||
load_shouts_with_topic,
|
||||
)
|
||||
from resolvers.follower import follow, get_shout_followers, unfollow
|
||||
from resolvers.notifier import (
|
||||
@@ -76,77 +80,79 @@ from resolvers.topic import (
|
||||
events_register()
|
||||
|
||||
__all__ = [
|
||||
# auth
|
||||
"get_current_user",
|
||||
"confirm_email",
|
||||
"register_by_email",
|
||||
"send_link",
|
||||
"login",
|
||||
"admin_get_roles",
|
||||
# admin
|
||||
"admin_get_users",
|
||||
"admin_get_roles",
|
||||
"confirm_email",
|
||||
"create_draft",
|
||||
# reaction
|
||||
"create_reaction",
|
||||
"delete_draft",
|
||||
"delete_reaction",
|
||||
# "delete_shout",
|
||||
# "update_shout",
|
||||
# follower
|
||||
"follow",
|
||||
# author
|
||||
"get_author",
|
||||
"get_author_followers",
|
||||
"get_author_follows",
|
||||
"get_author_follows_topics",
|
||||
"get_author_follows_authors",
|
||||
"get_author_follows_topics",
|
||||
"get_authors_all",
|
||||
"load_authors_by",
|
||||
"load_authors_search",
|
||||
"update_author",
|
||||
"get_communities_all",
|
||||
# "search_authors",
|
||||
# community
|
||||
"get_community",
|
||||
"get_communities_all",
|
||||
# topic
|
||||
"get_topic",
|
||||
"get_topics_all",
|
||||
"get_topics_by_community",
|
||||
"get_topics_by_author",
|
||||
"get_topic_followers",
|
||||
"get_topic_authors",
|
||||
# auth
|
||||
"get_current_user",
|
||||
"get_my_rates_comments",
|
||||
"get_my_rates_shouts",
|
||||
# reader
|
||||
"get_shout",
|
||||
"load_shouts_by",
|
||||
"load_shouts_random_top",
|
||||
"load_shouts_search",
|
||||
"load_shouts_unrated",
|
||||
# feed
|
||||
"load_shouts_feed",
|
||||
"load_shouts_coauthored",
|
||||
"load_shouts_discussed",
|
||||
"load_shouts_with_topic",
|
||||
"load_shouts_followed_by",
|
||||
"load_shouts_authored_by",
|
||||
# follower
|
||||
"follow",
|
||||
"unfollow",
|
||||
"get_shout_followers",
|
||||
# reaction
|
||||
"create_reaction",
|
||||
"update_reaction",
|
||||
"delete_reaction",
|
||||
# topic
|
||||
"get_topic",
|
||||
"get_topic_authors",
|
||||
"get_topic_followers",
|
||||
"get_topics_all",
|
||||
"get_topics_by_author",
|
||||
"get_topics_by_community",
|
||||
"load_authors_by",
|
||||
"load_authors_search",
|
||||
"load_comment_ratings",
|
||||
"load_comments_branch",
|
||||
# draft
|
||||
"load_drafts",
|
||||
# notifier
|
||||
"load_notifications",
|
||||
"load_reactions_by",
|
||||
"load_shout_comments",
|
||||
"load_shout_ratings",
|
||||
"load_comment_ratings",
|
||||
"load_comments_branch",
|
||||
# notifier
|
||||
"load_notifications",
|
||||
"notifications_seen_thread",
|
||||
"notifications_seen_after",
|
||||
"load_shouts_authored_by",
|
||||
"load_shouts_by",
|
||||
"load_shouts_coauthored",
|
||||
"load_shouts_discussed",
|
||||
# feed
|
||||
"load_shouts_feed",
|
||||
"load_shouts_followed_by",
|
||||
"load_shouts_random_top",
|
||||
"load_shouts_search",
|
||||
"load_shouts_unrated",
|
||||
"load_shouts_with_topic",
|
||||
"login",
|
||||
"notification_mark_seen",
|
||||
"notifications_seen_after",
|
||||
"notifications_seen_thread",
|
||||
"publish_draft",
|
||||
# rating
|
||||
"rate_author",
|
||||
"get_my_rates_comments",
|
||||
"get_my_rates_shouts",
|
||||
# draft
|
||||
"load_drafts",
|
||||
"create_draft",
|
||||
"update_draft",
|
||||
"delete_draft",
|
||||
"publish_draft",
|
||||
"unpublish_shout",
|
||||
"register_by_email",
|
||||
"send_link",
|
||||
"unfollow",
|
||||
"unpublish_draft",
|
||||
"unpublish_shout",
|
||||
"update_author",
|
||||
"update_draft",
|
||||
"update_reaction",
|
||||
]
|
||||
|
Reference in New Issue
Block a user