From 686d614386874f6aa45d16e8c121da537965cbd6 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 8 Apr 2019 20:56:12 +0200 Subject: [PATCH] Tweak the admin --- app.py | 1 + templates/admin_tasks.html | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/app.py b/app.py index 00580bc..45872e1 100644 --- a/app.py +++ b/app.py @@ -1303,6 +1303,7 @@ def admin(): def admin_tasks(): return render_template( "admin_tasks.html", + success=p.get_success(), dead=p.get_dead(), waiting=p.get_waiting(), cron=p.get_cron(), diff --git a/templates/admin_tasks.html b/templates/admin_tasks.html index d0b300e..e336f86 100644 --- a/templates/admin_tasks.html +++ b/templates/admin_tasks.html @@ -84,6 +84,32 @@ +

Success

+ + + + + + + + + + + + + {% for task in success %} + + + + + + + + {% endfor %} + +
#URLPayloadNext runResponse
{{ task.task_id }}{{ task.url }} ({{ task.expected }}){{ task.payload }}{{ task.next_run }}Tries #{{ task.tries }}: {{ task.last_error_body }} ({{ task.last_error_status_code }})
+ +