diff --git a/app/templates/tasks/view.html b/app/templates/tasks/view.html
index a01ca80..d47203f 100644
--- a/app/templates/tasks/view.html
+++ b/app/templates/tasks/view.html
@@ -4,12 +4,6 @@
Working
{% endblock %}
-{% block headextra %}
- {% if not "error" in info %}
-
- {% endif %}
-{% endblock %}
-
{% block content %}
{% if "error" in info %}
Task Failed
@@ -17,5 +11,15 @@ Working
{{ info. error }}
{% else %}
Working…
+
+
+
+
{% endif %}
{% endblock %}
diff --git a/app/views/tasks.py b/app/views/tasks.py
index 64ed702..72d7d1d 100644
--- a/app/views/tasks.py
+++ b/app/views/tasks.py
@@ -29,11 +29,13 @@ def check_task(id):
info = None
if isinstance(result, Exception):
info = {
+ 'id': id,
'status': status,
'error': str(result),
}
else:
info = {
+ 'id': id,
'status': status,
'result': result,
}