From 81ad0bea20c3582038a78d0ea385dc3a6761b48a Mon Sep 17 00:00:00 2001 From: 100gle Date: Tue, 13 Jun 2023 22:21:55 +0800 Subject: [PATCH] style: sort import --- backend/src/module/database/bangumi.py | 2 +- backend/src/module/notification/notification.py | 15 +++++++-------- backend/src/module/notification/plugin/bark.py | 3 +-- .../src/module/notification/plugin/server_chan.py | 2 +- backend/src/module/notification/plugin/slack.py | 2 +- .../src/module/notification/plugin/telegram.py | 2 +- backend/src/module/notification/plugin/wecom.py | 2 +- 7 files changed, 13 insertions(+), 15 deletions(-) diff --git a/backend/src/module/database/bangumi.py b/backend/src/module/database/bangumi.py index 9aced49e..ecd8126f 100644 --- a/backend/src/module/database/bangumi.py +++ b/backend/src/module/database/bangumi.py @@ -1,8 +1,8 @@ import logging +from module.ab_decorator import locked from module.database.connector import DataConnector from module.models import BangumiData -from module.ab_decorator import locked logger = logging.getLogger(__name__) diff --git a/backend/src/module/notification/notification.py b/backend/src/module/notification/notification.py index 78615897..000ef171 100644 --- a/backend/src/module/notification/notification.py +++ b/backend/src/module/notification/notification.py @@ -1,16 +1,15 @@ import logging -from .plugin import ( - TelegramNotification, - ServerChanNotification, - BarkNotification, - WecomNotification, -) - -from module.models import Notification from module.conf import settings from module.database import BangumiDatabase +from module.models import Notification +from .plugin import ( + BarkNotification, + ServerChanNotification, + TelegramNotification, + WecomNotification, +) logger = logging.getLogger(__name__) diff --git a/backend/src/module/notification/plugin/bark.py b/backend/src/module/notification/plugin/bark.py index e825a2c9..1bddf09a 100644 --- a/backend/src/module/notification/plugin/bark.py +++ b/backend/src/module/notification/plugin/bark.py @@ -1,8 +1,7 @@ import logging -from module.network import RequestContent from module.models import Notification - +from module.network import RequestContent logger = logging.getLogger(__name__) diff --git a/backend/src/module/notification/plugin/server_chan.py b/backend/src/module/notification/plugin/server_chan.py index 9903ed3e..5e5ca495 100644 --- a/backend/src/module/notification/plugin/server_chan.py +++ b/backend/src/module/notification/plugin/server_chan.py @@ -1,7 +1,7 @@ import logging -from module.network import RequestContent from module.models import Notification +from module.network import RequestContent logger = logging.getLogger(__name__) diff --git a/backend/src/module/notification/plugin/slack.py b/backend/src/module/notification/plugin/slack.py index f4da8a2d..2100a812 100644 --- a/backend/src/module/notification/plugin/slack.py +++ b/backend/src/module/notification/plugin/slack.py @@ -1,7 +1,7 @@ import logging -from module.network import RequestContent from module.models import Notification +from module.network import RequestContent logger = logging.getLogger(__name__) diff --git a/backend/src/module/notification/plugin/telegram.py b/backend/src/module/notification/plugin/telegram.py index b269aea3..717f265b 100644 --- a/backend/src/module/notification/plugin/telegram.py +++ b/backend/src/module/notification/plugin/telegram.py @@ -1,7 +1,7 @@ import logging -from module.network import RequestContent from module.models import Notification +from module.network import RequestContent logger = logging.getLogger(__name__) diff --git a/backend/src/module/notification/plugin/wecom.py b/backend/src/module/notification/plugin/wecom.py index 0f8d65c4..dc7c811b 100644 --- a/backend/src/module/notification/plugin/wecom.py +++ b/backend/src/module/notification/plugin/wecom.py @@ -1,7 +1,7 @@ import logging -from module.network import RequestContent from module.models import Notification +from module.network import RequestContent logger = logging.getLogger(__name__)