Skip to content

Commit

Permalink
fix: config name
Browse files Browse the repository at this point in the history
  • Loading branch information
moesnow committed Nov 25, 2023
1 parent f5fcf95 commit 51ba853
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions assets/docs/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v1.6.8

### 修复
- 模拟宇宙运行频率配置名错误

## v1.6.7

### 新功能
Expand Down
4 changes: 2 additions & 2 deletions tasks/daily/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def start():
else:
logger.info(_("锄大地尚未刷新"))

if config.universeFrequencyCard == "weekly":
if config.universe_frequency == "weekly":
if Date.is_next_mon_4_am(config.universe_timestamp):
if config.universe_enable:
Power.start()
Expand All @@ -50,7 +50,7 @@ def start():
logger.info(_("模拟宇宙未开启"))
else:
logger.info(_("模拟宇宙尚未刷新"))
elif config.universeFrequencyCard == "daily":
elif config.universe_frequency == "daily":
if Date.is_next_4_am(config.universe_timestamp):
if config.universe_enable:
Universe.start(get_reward=True)
Expand Down

0 comments on commit 51ba853

Please sign in to comment.