1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-22 02:57:39 +00:00

Remove completed tasks and sort the tasks by date added when calling .tasks

This commit is contained in:
blitzmann
2020-08-23 23:00:23 -04:00
parent bec280c6b1
commit 508f49df18
2 changed files with 28 additions and 25 deletions

View File

@@ -723,7 +723,7 @@ def format_runtime(runtime):
# helper function to apply localize status information in tasklist entries
def render_task_status(tasklist):
renderedtasklist = list()
for user, task in tasklist:
for user, added, task in tasklist:
if user == current_user.nickname or current_user.role_admin():
ret = {}
if task.start_time: