mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-16 20:16:20 +01:00
not relevant comment
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user