migration, auth, refactoring, formatting
This commit is contained in:
@@ -3,9 +3,42 @@ from resolvers.auth import (
|
||||
sign_out,
|
||||
is_email_used,
|
||||
register,
|
||||
confirm,
|
||||
auth_forget,
|
||||
auth_reset,
|
||||
confirm_email,
|
||||
auth_send_link,
|
||||
)
|
||||
from resolvers.collab import remove_author, invite_author
|
||||
from resolvers.community import (
|
||||
create_community,
|
||||
delete_community,
|
||||
get_community,
|
||||
get_communities,
|
||||
)
|
||||
|
||||
# from resolvers.collab import invite_author, remove_author
|
||||
from resolvers.editor import create_shout, delete_shout, update_shout
|
||||
from resolvers.profile import (
|
||||
get_users_by_slugs,
|
||||
get_current_user,
|
||||
get_user_reacted_shouts,
|
||||
get_user_roles,
|
||||
get_top_authors,
|
||||
)
|
||||
|
||||
# from resolvers.feed import shouts_for_feed, my_candidates
|
||||
from resolvers.reactions import (
|
||||
create_reaction,
|
||||
delete_reaction,
|
||||
update_reaction,
|
||||
reactions_unfollow,
|
||||
reactions_follow,
|
||||
get_shout_reactions,
|
||||
)
|
||||
from resolvers.topics import (
|
||||
topic_follow,
|
||||
topic_unfollow,
|
||||
topics_by_author,
|
||||
topics_by_community,
|
||||
topics_all,
|
||||
)
|
||||
from resolvers.zine import (
|
||||
get_shout_by_slug,
|
||||
@@ -21,36 +54,6 @@ from resolvers.zine import (
|
||||
shouts_by_topics,
|
||||
shouts_by_communities,
|
||||
)
|
||||
from resolvers.profile import (
|
||||
get_users_by_slugs,
|
||||
get_current_user,
|
||||
get_user_reacted_shouts,
|
||||
get_user_roles,
|
||||
get_top_authors
|
||||
)
|
||||
from resolvers.topics import (
|
||||
topic_follow,
|
||||
topic_unfollow,
|
||||
topics_by_author,
|
||||
topics_by_community,
|
||||
topics_all,
|
||||
)
|
||||
|
||||
# from resolvers.feed import shouts_for_feed, my_candidates
|
||||
from resolvers.reactions import (
|
||||
create_reaction,
|
||||
delete_reaction,
|
||||
update_reaction,
|
||||
)
|
||||
|
||||
# from resolvers.collab import invite_author, remove_author
|
||||
from resolvers.editor import create_shout, delete_shout, update_shout
|
||||
from resolvers.community import (
|
||||
create_community,
|
||||
delete_community,
|
||||
get_community,
|
||||
get_communities,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"follow",
|
||||
@@ -59,9 +62,8 @@ __all__ = [
|
||||
"login",
|
||||
"register",
|
||||
"is_email_used",
|
||||
"confirm",
|
||||
"auth_forget",
|
||||
"auth_reset",
|
||||
"confirm_email",
|
||||
"auth_send_link",
|
||||
"sign_out",
|
||||
# profile
|
||||
"get_current_user",
|
||||
@@ -69,10 +71,7 @@ __all__ = [
|
||||
"get_user_roles",
|
||||
"get_top_authors",
|
||||
# zine
|
||||
"shouts_for_feed",
|
||||
"my_candidates",
|
||||
"recent_published",
|
||||
"recent_reacted",
|
||||
"recent_all",
|
||||
"shouts_by_topics",
|
||||
"shouts_by_authors",
|
||||
@@ -82,7 +81,6 @@ __all__ = [
|
||||
"top_overall",
|
||||
"top_viewed",
|
||||
"view_shout",
|
||||
"view_reaction",
|
||||
"get_shout_by_slug",
|
||||
# editor
|
||||
"create_shout",
|
||||
|
Reference in New Issue
Block a user