From 510bf50ff2fb29817fc754d6793e506e3414bc6b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 11 May 2018 15:29:26 +0100 Subject: Remove meta refresh on task page, use JS to poll --- app/views/tasks.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/views') 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, } -- cgit v1.2.3