1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-15 21:49:24 +08:00

Fix: Reduce config write. Finished

(cherry picked from commit ccc82cfe36)
This commit is contained in:
Zuosizhu
2023-02-10 19:36:36 +08:00
parent 34182b004f
commit c1f94dcd20

View File

@@ -253,8 +253,6 @@ class CampaignRun(CampaignEvent, ShopStatus):
self.run_count = 0
self.run_limit = self.config.StopCondition_RunCount
while 1:
# Update config
self.config.update()
# End
if total and self.run_count >= total:
break
@@ -295,6 +293,9 @@ class CampaignRun(CampaignEvent, ShopStatus):
if self.triggered_stop_condition(oil_check=not self.campaign.is_in_auto_search_menu()):
break
# Update config
self.config.update()
# Run
try:
self.campaign.run()