From d082f2e46f2699a486e7b6f75911b92ce176e87c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 5 Jul 2024 10:58:35 -0500 Subject: bug: Return a hashable key, not a dict. --- scripts/rqtl2/install_genotypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rqtl2/install_genotypes.py b/scripts/rqtl2/install_genotypes.py index 9f8bf03..dffd9d8 100644 --- a/scripts/rqtl2/install_genotypes.py +++ b/scripts/rqtl2/install_genotypes.py @@ -153,7 +153,7 @@ def cross_reference_genotypes(dbconn: mdb.Connection, **row, "datasetid": datasetid, "pos": mdata.get(markersdict.get( - row.get("markerid"), {}), {}).get("pos") + row.get("markerid"), "nosuchkey"), {}).get("pos") } for row in dataids)) return cursor.rowcount -- cgit v1.2.3