mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-16 22:05:12 +00:00
perf: reduce config save times
This commit is contained in:
parent
e71118c09e
commit
d756b0dc3f
@ -41,8 +41,9 @@ class Bounty(BountyUI):
|
|||||||
if action == 'stop':
|
if action == 'stop':
|
||||||
raise RequestHumanTakeover
|
raise RequestHumanTakeover
|
||||||
elif action == 'skip':
|
elif action == 'skip':
|
||||||
self.config.task_delay(server_update=True)
|
with self.config.multi_set():
|
||||||
self.config.task_stop()
|
self.config.task_delay(server_update=True)
|
||||||
|
self.config.task_stop()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_ticket_enough(self) -> bool:
|
def is_ticket_enough(self) -> bool:
|
||||||
|
|||||||
@ -42,8 +42,9 @@ class Scrimmage(ScrimmageUI):
|
|||||||
if action == 'stop':
|
if action == 'stop':
|
||||||
raise RequestHumanTakeover
|
raise RequestHumanTakeover
|
||||||
elif action == 'skip':
|
elif action == 'skip':
|
||||||
self.config.task_delay(server_update=True)
|
with self.config.multi_set():
|
||||||
self.config.task_stop()
|
self.config.task_delay(server_update=True)
|
||||||
|
self.config.task_stop()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_ticket_enough(self) -> bool:
|
def is_ticket_enough(self) -> bool:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user