diff options
author | Frederick Muriuki Muriithi | 2024-01-22 09:27:58 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-01-22 09:27:58 +0300 |
commit | 6ca397279e09d968679930f429d6341798be990e (patch) | |
tree | f861aa460b089c787a9b1420cf1dcb998aeca151 /qc_app | |
parent | f875926183e2e26881c3288e2f5c3d8ffe6397b8 (diff) | |
download | gn-uploader-6ca397279e09d968679930f429d6341798be990e.tar.gz |
scripts: Pass in logger to get detailed updates.
Diffstat (limited to 'qc_app')
-rw-r--r-- | qc_app/templates/rqtl2/rqtl2-job-status.html | 2 | ||||
-rw-r--r-- | qc_app/upload/rqtl2.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/qc_app/templates/rqtl2/rqtl2-job-status.html b/qc_app/templates/rqtl2/rqtl2-job-status.html index a8bc640..c6fd1f2 100644 --- a/qc_app/templates/rqtl2/rqtl2-job-status.html +++ b/qc_app/templates/rqtl2/rqtl2-job-status.html @@ -12,8 +12,6 @@ <h2>R/qtl2 Upload: Job Status</h2> -{{job}} - <h4>Log</h4> <div class="cli-output"> {%for msg in messages%} diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py index 8a0d8b4..7805114 100644 --- a/qc_app/upload/rqtl2.py +++ b/qc_app/upload/rqtl2.py @@ -592,7 +592,9 @@ def rqtl2_processing_status(jobid: UUID): if not bool(thejob): return render_template("rqtl2/no-such-job.html", jobid=jobid) - logmessages = rconn.lrange(thejob.get("log-messagelist"), 0, -1) or [] + messagelistname = thejob.get("log-messagelist") + logmessages = (rconn.lrange(messagelistname, 0, -1) + if bool(messagelistname) else []) if thejob["status"] == "error": return render_template( |