Skip to content

Commit d671bcc

Browse files
committed
Fix: use yaml to dump island data to config
1 parent da1cea7 commit d671bcc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

module/island/season_task.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from yaml import safe_dump
2+
13
import module.config.server as server
24
from module.base.button import ButtonGrid
35
from module.base.decorator import cached_property, del_cached_property, Config
@@ -184,5 +186,6 @@ def run(self):
184186
self.ui_ensure(page_island_season)
185187
self.island_season_bottom_navbar_ensure(left=3)
186188
result = self.scan_all()
187-
self.config.cross_set(keys="IslandInfo.IslandSeasonTask", value=result)
188-
return result
189+
value = safe_dump(result)
190+
self.config.cross_set(keys="IslandInfo.IslandSeasonTask.TaskDict", value=value)
191+
self.config.task_delay(server_update=True)

0 commit comments

Comments
 (0)