Bugfixes from testrun

This commit is contained in:
Ozzie Isaacs 2022-04-26 10:49:06 +02:00
parent 6e8445fed5
commit 21ebdc0130
3 changed files with 1367 additions and 1363 deletions

View File

@ -1684,12 +1684,12 @@ def edit_scheduledtasks():
def update_scheduledtasks(): def update_scheduledtasks():
error = False error = False
to_save = request.form.to_dict() to_save = request.form.to_dict()
if "0" <= to_save.get("schedule_start_time") <= "23": if 0 <= int(to_save.get("schedule_start_time")) <= 23:
_config_int(to_save, "schedule_start_time") _config_int(to_save, "schedule_start_time")
else: else:
flash(_(u"Invalid start time for task specified"), category="error") flash(_(u"Invalid start time for task specified"), category="error")
error = True error = True
if "0" < to_save.get("schedule_duration") <= "60": if 0 < int(to_save.get("schedule_duration")) <= 60:
_config_int(to_save, "schedule_duration") _config_int(to_save, "schedule_duration")
else: else:
flash(_(u"Invalid duration for task specified"), category="error") flash(_(u"Invalid duration for task specified"), category="error")

View File

@ -34,8 +34,8 @@ def get_scheduled_tasks(reconnect=True):
# Generate all missing book cover thumbnails # Generate all missing book cover thumbnails
if config.schedule_generate_book_covers: if config.schedule_generate_book_covers:
tasks.append([lambda: TaskGenerateCoverThumbnails(), 'generate book covers', False])
tasks.append([lambda: TaskClearCoverThumbnailCache(0), 'delete superfluous book covers', True]) tasks.append([lambda: TaskClearCoverThumbnailCache(0), 'delete superfluous book covers', True])
tasks.append([lambda: TaskGenerateCoverThumbnails(), 'generate book covers', False])
# Generate all missing series thumbnails # Generate all missing series thumbnails
if config.schedule_generate_series_covers: if config.schedule_generate_series_covers:

File diff suppressed because it is too large Load Diff