From b74099fe555d5c2886899e555bb90afefec3ea02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Salson?= Date: Tue, 5 Mar 2019 16:28:25 +0000 Subject: [PATCH] controllers/default.py: checkProcess: Give access to the result ID When a process is finished we need to access its result. Thus we provide the result ID. Related to #1469 --- server/web2py/applications/vidjil/controllers/default.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/web2py/applications/vidjil/controllers/default.py b/server/web2py/applications/vidjil/controllers/default.py index 606c2f4cb..fe961295b 100644 --- a/server/web2py/applications/vidjil/controllers/default.py +++ b/server/web2py/applications/vidjil/controllers/default.py @@ -185,7 +185,9 @@ def checkProcess(): res = {"success" : "true", "status" : task.status, - "data" : run.run_result, + "data" : {'run_result': run.run_result, + 'result_id': results_file.id + }, "processId" : task.id} else : if len(msg) > 0: -- GitLab