Tweak the admin

This commit is contained in:
Thomas Sileo 2019-04-07 12:53:16 +02:00
parent 63ebf6ecf2
commit 87a1144f88
2 changed files with 0 additions and 28 deletions

2
app.py
View file

@ -1402,10 +1402,8 @@ def admin():
@app.route("/admin/tasks", methods=["GET"]) @app.route("/admin/tasks", methods=["GET"])
@login_required @login_required
def admin_tasks(): def admin_tasks():
return render_template( return render_template(
"admin_tasks.html", "admin_tasks.html",
success=p.get_success(),
dead=p.get_dead(), dead=p.get_dead(),
waiting=p.get_waiting(), waiting=p.get_waiting(),
) )

View file

@ -58,32 +58,6 @@
</table> </table>
<h3>Success</h3>
<table class="pure-table">
<thead>
<tr>
<th>#</th>
<th>URL</th>
<th>Payload</th>
<th>Next run</th>
<th>Response</th>
</tr>
</thead>
<tbody>
{% for task in success %}
<tr>
<td>{{ task.task_id }}</td>
<td>{{ task.url }} ({{ task.expected }}</td>
<td>{{ task.payload }}</td>
<td>{{ task.next_run }}</td>
<td>Tries #{{ task.tries }}: {{ task.last_error_body }} ({{ task.last_error_status_code }})</td>
</tr>
{% endfor %}
</tbody>
</table>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}