From 232892d3971d3e33737bd982aab99422beb25391 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 20 May 2024 16:46:05 +0300 Subject: [PATCH] isort --- resolvers/__init__.py | 14 ++------------ resolvers/notifier.py | 7 +------ services/viewed.py | 7 +------ services/webhook.py | 7 +++---- 4 files changed, 7 insertions(+), 28 deletions(-) diff --git a/resolvers/__init__.py b/resolvers/__init__.py index dbc3f35e..bff24eef 100644 --- a/resolvers/__init__.py +++ b/resolvers/__init__.py @@ -11,12 +11,7 @@ from resolvers.author import ( # search_authors, ) from resolvers.community import get_communities_all, get_community from resolvers.editor import create_shout, delete_shout, update_shout -from resolvers.follower import ( - follow, - get_shout_followers, - get_topic_followers, - unfollow, -) +from resolvers.follower import follow, get_shout_followers, get_topic_followers, unfollow from resolvers.notifier import ( load_notifications, notification_mark_seen, @@ -40,12 +35,7 @@ from resolvers.reader import ( load_shouts_search, load_shouts_unrated, ) -from resolvers.topic import ( - get_topic, - get_topics_all, - get_topics_by_author, - get_topics_by_community, -) +from resolvers.topic import get_topic, get_topics_all, get_topics_by_author, get_topics_by_community from services.triggers import events_register events_register() diff --git a/resolvers/notifier.py b/resolvers/notifier.py index 8ce824e3..8a3b9a91 100644 --- a/resolvers/notifier.py +++ b/resolvers/notifier.py @@ -8,12 +8,7 @@ from sqlalchemy.orm import aliased from sqlalchemy.sql import not_ from orm.author import Author -from orm.notification import ( - Notification, - NotificationAction, - NotificationEntity, - NotificationSeen, -) +from orm.notification import Notification, NotificationAction, NotificationEntity, NotificationSeen from orm.shout import Shout from services.auth import login_required from services.db import local_session diff --git a/services/viewed.py b/services/viewed.py index f9540fe2..f04de2db 100644 --- a/services/viewed.py +++ b/services/viewed.py @@ -7,12 +7,7 @@ from typing import Dict # ga from google.analytics.data_v1beta import BetaAnalyticsDataClient -from google.analytics.data_v1beta.types import ( - DateRange, - Dimension, - Metric, - RunReportRequest, -) +from google.analytics.data_v1beta.types import DateRange, Dimension, Metric, RunReportRequest from orm.author import Author from orm.shout import Shout, ShoutAuthor, ShoutTopic diff --git a/services/webhook.py b/services/webhook.py index ac5a8828..acd526fd 100644 --- a/services/webhook.py +++ b/services/webhook.py @@ -1,17 +1,16 @@ import os import re +from sqlalchemy import select from starlette.endpoints import HTTPEndpoint from starlette.exceptions import HTTPException from starlette.requests import Request from starlette.responses import JSONResponse -from sqlalchemy import select - from orm.author import Author -from services.db import local_session -from services.cache import cache_author from resolvers.stat import get_with_stat +from services.cache import cache_author +from services.db import local_session class WebhookEndpoint(HTTPEndpoint):