Skip to content

Commit

Permalink
定期检查公招阈值
Browse files Browse the repository at this point in the history
  • Loading branch information
Anyk00 committed Sep 8, 2024
1 parent 975354e commit c9b4eae
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions arknights_mower/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,15 @@ def simulate(saved):
datetime.now() - timedelta(hours=8)
).date()

if config.conf.recruit_enable:
base_scheduler.recruit_plan_solver()
if (
config.conf.recruit_enable
and base_scheduler.recruit_time
< (datetime.now() - timedelta(hours=8)).date()
):
if base_scheduler.recruit_plan_solver():
base_scheduler.recruit_time = (
datetime.now() - timedelta(hours=8)
).date()

# 应该在maa任务之后
def _is_depotscan():
Expand Down

0 comments on commit c9b4eae

Please sign in to comment.