1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-18 22:20:30 +00:00

Fix for #2545 (Max task duration double entry "1hour")

This commit is contained in:
Ozzie Isaacs 2022-09-19 18:57:55 +02:00
parent 9fa56a2323
commit b898b37e29

View File

@ -1310,7 +1310,7 @@ def edit_scheduledtasks():
time_field.append((n, format_time(datetime_time(hour=n), format="short",))) time_field.append((n, format_time(datetime_time(hour=n), format="short",)))
for n in range(5, 65, 5): for n in range(5, 65, 5):
t = timedelta(hours=n // 60, minutes=n % 60) t = timedelta(hours=n // 60, minutes=n % 60)
duration_field.append((n, format_timedelta(t, threshold=.9))) duration_field.append((n, format_timedelta(t, threshold=.97)))
return render_title_template("schedule_edit.html", return render_title_template("schedule_edit.html",
config=content, config=content,