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 b4851e1d70

View File

@ -1310,7 +1310,7 @@ def edit_scheduledtasks():
time_field.append((n, format_time(datetime_time(hour=n), format="short",)))
for n in range(5, 65, 5):
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",
config=content,