about summary refs log tree commit diff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-09-28 12:26:49 -0500
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-09-28 13:53:13 -0500
commitf1b7baa6bb7bf45b49d4aa6f1aa93ed752762830 (patch)
tree2fe00fbfd5a3f8cbb04543aad824982eadcf5c1e /uploader
parent05ef710a1510ecdbbedd8db64dda2387fef5ed2b (diff)
downloadgn-uploader-f1b7baa6bb7bf45b49d4aa6f1aa93ed752762830.tar.gz
BugFix: Myriad of minor bugfixes.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/genotypes/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/uploader/genotypes/views.py b/uploader/genotypes/views.py
index 454fee7..a13ef5e 100644
--- a/uploader/genotypes/views.py
+++ b/uploader/genotypes/views.py
@@ -1,6 +1,7 @@
 """Views for the genotypes."""
+import uuid
 import logging
-from uuid import uuid4
+from pathlib import Path
 
 from MySQLdb.cursors import DictCursor
 from pymonad.either import Left, Right, Either
@@ -251,7 +252,7 @@ def add_genotype_records(species: dict, population: dict, dataset: dict, **kwarg
         # necessary information. Also do basic QC.
         Path(uploads_dir(app)),
         form["uploaded-file"],
-        csv_meta: {
+        csv_meta = {
             "sep": form.get("file-separator", ","),
             "comment.char": form.get("file-comment-char", "#"),
             "na.strings": form.get("file-na", "- NA N/A").split(" ")