From c8d98e69c56328571cebf17688031cd21d7378ae Mon Sep 17 00:00:00 2001 From: thsrite Date: Sun, 23 Jun 2024 22:26:57 +0800 Subject: [PATCH] fix bug --- plugins/cd2assistant/__init__.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/plugins/cd2assistant/__init__.py b/plugins/cd2assistant/__init__.py index 650807a..7a5d245 100644 --- a/plugins/cd2assistant/__init__.py +++ b/plugins/cd2assistant/__init__.py @@ -141,13 +141,12 @@ class Cd2Assistant(_PluginBase): """ 发送通知 """ - if self._enabled and self._notify: - mtype = NotificationType.Manual - if self._msgtype: - mtype = NotificationType.__getitem__(str(self._msgtype)) or NotificationType.Manual - self.post_message(title="CloudDrive2助手通知", - mtype=mtype, - text=task.get("errorMessage")) + mtype = NotificationType.Manual + if self._msgtype: + mtype = NotificationType.__getitem__(str(self._msgtype)) or NotificationType.Manual + self.post_message(title="CloudDrive2助手通知", + mtype=mtype, + text=task.get("errorMessage")) def get_state(self) -> bool: return self._enabled