not relevant comment

This commit is contained in:
Joel Falknau 2024-12-29 15:14:29 +10:00
parent 30a79362f4
commit 7022cb7050
No known key found for this signature in database

View File

@ -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)),