Преглед изворни кода

fix(GulidBanquet):save config

修复配置文件保存
ohspecial пре 1 година
родитељ
комит
6e7eb59844
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      tasks/GuildBanquet/script_task.py

+ 2 - 2
tasks/GuildBanquet/script_task.py

@@ -72,7 +72,6 @@ class ScriptTask(GameUi, GuildBanquetAssets):
                 logger.info("Wait in place or answer the question manually")
             else:
                 logger.info("Guild banquet end")
-                self.set_config()
                 break
             if wait_timer.reached():
                 wait_timer.reset()
@@ -84,6 +83,7 @@ class ScriptTask(GameUi, GuildBanquetAssets):
                 logger.warning('In Guild banquet, wait')
                 self.device.stuck_record_clear()
                 self.device.stuck_record_add('BATTLE_STATUS_S')
+        self.set_config()
         self.ui_get_current_page()
         self.ui_goto(page_main)
         self.plan_next_run()
@@ -167,7 +167,7 @@ class ScriptTask(GameUi, GuildBanquetAssets):
 if __name__ == '__main__':
     from module.config.config import Config
     from module.device.device import Device
-    c = Config('xiaohao')
+    c = Config('oas1')
     d = Device(c)
     t = ScriptTask(c, d)
     t.run()