Skip to content
Snippets Groups Projects
Commit d74c1c46 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Fix SQL parameter for query-rid action

It needs to be a tuple even when there's a single argument.

https://in.xfel.eu/redmine/issues/87389
parent 8ac8e187
No related branches found
No related tags found
1 merge request!460Fix SQL parameter for query-rid action
......@@ -276,7 +276,7 @@ def slurm_job_status(jobid):
def query_rid(conn, rid) -> bytes:
c = conn.cursor()
c.execute("SELECT * FROM jobs WHERE rid LIKE ?", rid)
c.execute("SELECT * FROM jobs WHERE rid LIKE ?", (rid,))
combined = {}
for r in c.fetchall():
rid, jobid, proposal, run, status, time_, _ = r
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment