mirror of
https://github.com/janeczku/calibre-web
synced 2025-09-04 20:07:58 +00:00
Fix for #959
This commit is contained in:
@@ -605,7 +605,10 @@ def render_task_status(tasklist):
|
|||||||
if 'starttime' not in task:
|
if 'starttime' not in task:
|
||||||
task['starttime'] = ""
|
task['starttime'] = ""
|
||||||
|
|
||||||
task['runtime'] = format_runtime(task['formRuntime'])
|
if 'formRuntime' not in task:
|
||||||
|
task['runtime'] = ""
|
||||||
|
else:
|
||||||
|
task['runtime'] = format_runtime(task['formRuntime'])
|
||||||
|
|
||||||
# localize the task status
|
# localize the task status
|
||||||
if isinstance( task['stat'], int ):
|
if isinstance( task['stat'], int ):
|
||||||
|
Reference in New Issue
Block a user