Fix: Remove duplicate calls

This commit is contained in:
X-Zero-L 2023-12-28 00:59:45 +08:00
parent 68969c6be5
commit 6dcebcb1f2

View File

@ -64,14 +64,9 @@ class Assignment(AssignmentClaim, SynthesizeUI):
logger.attr('has_new_dispatch', self.has_new_dispatch)
with self.config.multi_set():
# Check daily
quests = self.config.stored.DailyQuest.load_quests()
if KEYWORDS_DAILY_QUEST.Dispatch_1_assignments in quests:
logger.info('Achieved daily quest Dispatch_1_assignments')
self.config.task_call('DailyQuest')
if self.has_new_dispatch:
if KEYWORDS_DAILY_QUEST.Dispatch_1_assignments in quests:
logger.info('Achieved daily quest Dispatch_1_assignments')
self.config.task_call('DailyQuest')
# Delay self
if len(self.dispatched):
delay = min(self.dispatched.values())