1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 07:28:21 +08:00

Fix: notify_handle AttributeError (#2438)

* Fix #2436 : object call error
This commit is contained in:
guoh064
2023-04-01 11:43:15 +08:00
committed by GitHub
parent f8c9f9084f
commit 929f6494e5

View File

@@ -77,8 +77,8 @@ class CampaignRun(CampaignEvent):
self.config.Scheduler_Enable = False
handle_notify(
self.config.Error_OnePushConfig,
title=f"Alas <{self.config_name}> campaign finished",
content=f"<{self.config_name}> {self.name} reached run count limit"
title=f"Alas <{self.config.config_name}> campaign finished",
content=f"<{self.config.config_name}> {self.name} reached run count limit"
)
return True
# Lv120 limit
@@ -87,8 +87,8 @@ class CampaignRun(CampaignEvent):
self.config.Scheduler_Enable = False
handle_notify(
self.config.Error_OnePushConfig,
title=f"Alas <{self.config_name}> campaign finished",
content=f"<{self.config_name}> {self.name} reached level limit"
title=f"Alas <{self.config.config_name}> campaign finished",
content=f"<{self.config.config_name}> {self.name} reached level limit"
)
return True
# Oil limit
@@ -108,8 +108,8 @@ class CampaignRun(CampaignEvent):
self.config.Scheduler_Enable = False
handle_notify(
self.config.Error_OnePushConfig,
title=f"Alas <{self.config_name}> campaign finished",
content=f"<{self.config_name}> {self.name} got new ship"
title=f"Alas <{self.config.config_name}> campaign finished",
content=f"<{self.config.config_name}> {self.name} got new ship"
)
return True
# Event limit