aboutsummaryrefslogtreecommitdiff
path: root/app/views/tasks.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-11 15:29:26 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-11 15:29:26 +0100
commit510bf50ff2fb29817fc754d6793e506e3414bc6b (patch)
treed4dc5c04d9bcf793593d7091607b978c1950832a /app/views/tasks.py
parent6d7b810270b21575dca54eb36f371969b976bafd (diff)
downloadcheatdb-510bf50ff2fb29817fc754d6793e506e3414bc6b.tar.xz
Remove meta refresh on task page, use JS to poll
Diffstat (limited to 'app/views/tasks.py')
-rw-r--r--app/views/tasks.py2
1 files changed, 2 insertions, 0 deletions
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,
}