mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 08:37:42 +00:00
Fix: Remove duplicate calls
This commit is contained in:
parent
68969c6be5
commit
6dcebcb1f2
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user