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,11 +64,6 @@ class Assignment(AssignmentClaim, SynthesizeUI):
logger.attr('has_new_dispatch', self.has_new_dispatch) logger.attr('has_new_dispatch', self.has_new_dispatch)
with self.config.multi_set(): with self.config.multi_set():
# Check daily # 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: if KEYWORDS_DAILY_QUEST.Dispatch_1_assignments in quests:
logger.info('Achieved daily quest Dispatch_1_assignments') logger.info('Achieved daily quest Dispatch_1_assignments')
self.config.task_call('DailyQuest') self.config.task_call('DailyQuest')