diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-11 15:29:26 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-11 15:29:26 +0100 |
commit | 510bf50ff2fb29817fc754d6793e506e3414bc6b (patch) | |
tree | d4dc5c04d9bcf793593d7091607b978c1950832a /app/views/tasks.py | |
parent | 6d7b810270b21575dca54eb36f371969b976bafd (diff) | |
download | cheatdb-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.py | 2 |
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, } |