mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-23 19:22:27 +02:00
not relevant comment
This commit is contained in:
parent
30a79362f4
commit
7022cb7050
@ -20,7 +20,6 @@ def offset_cron(schedule: crontab) -> crontab:
|
||||
new_minute = [(m + (round(60 * cron_offset.minute))) % 60 for m in schedule.minute]
|
||||
new_hour = [(m + (round(24 * cron_offset.hour))) % 24 for m in schedule.hour]
|
||||
|
||||
# Type hints are fine here, crontab _expand_cronspec handles sets, the hinting is old
|
||||
return crontab(
|
||||
minute=",".join(str(m) for m in sorted(new_minute)),
|
||||
hour=",".join(str(h) for h in sorted(new_hour)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user