From 28d420af519683f98e6a851f815e9850a00f1078 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 4 Jul 2024 22:04:10 +0800 Subject: [PATCH] fix bug --- app/modules/telegram/__init__.py | 4 ++-- app/modules/webpush/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/modules/telegram/__init__.py b/app/modules/telegram/__init__.py index cf8fcf14..7e60117a 100644 --- a/app/modules/telegram/__init__.py +++ b/app/modules/telegram/__init__.py @@ -1,13 +1,13 @@ import json from typing import Optional, Union, List, Tuple, Any, Dict -from app.core.context import MediaInfo, Context from app.core.config import settings +from app.core.context import MediaInfo, Context from app.helper.notification import NotificationHelper from app.log import logger from app.modules import _ModuleBase, _MessageBase from app.modules.telegram.telegram import Telegram -from app.schemas import MessageChannel, CommingMessage, Notification, NotificationConf +from app.schemas import MessageChannel, CommingMessage, Notification class TelegramModule(_ModuleBase, _MessageBase): diff --git a/app/modules/webpush/__init__.py b/app/modules/webpush/__init__.py index 023dd46c..e4dee77b 100644 --- a/app/modules/webpush/__init__.py +++ b/app/modules/webpush/__init__.py @@ -5,7 +5,7 @@ from pywebpush import webpush, WebPushException from app.core.config import global_vars, settings from app.log import logger -from app.modules import _ModuleBase, checkMessage +from app.modules import _ModuleBase from app.schemas import MessageChannel, Notification