diff --git a/allianceauth/framework/cron.py b/allianceauth/framework/cron.py index 8ec3eb50..c8f54cbd 100644 --- a/allianceauth/framework/cron.py +++ b/allianceauth/framework/cron.py @@ -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)),