Commit 438c40cd authored by Ryan Herbert's avatar Ryan Herbert Committed by Mathieu Giraud
Browse files

sample_set/index.html less queries for job status

Store the result of the querye for the job status to avoid performing it
twice. While this may have been optimised automatically by a web2py
cache or similar mechanism, I feel like the code produced is easier to
parent b8d1062f
Pipeline #199329 passed with stages
in 17 minutes and 18 seconds
......@@ -74,10 +74,11 @@
{{for row in query :}}
{{if row.results_file.scheduler_task_id is None or db.scheduler_task[row.results_file.scheduler_task_id ] is None:}}
{{task = db.scheduler_task[row.results_file.scheduler_task_id ]}}
{{if row.results_file.scheduler_task_id is None or task is None:}}
{{status = '' }}
{{status = db.scheduler_task[row.results_file.scheduler_task_id ].status }}
{{status = task.status }}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment