aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-05-10 19:38:51 +0000
committerzsloan2022-05-10 19:39:27 +0000
commit4f399a72197aad9821503aa6f916c396cb596a91 (patch)
treec72f75ca6d6ab52f4098871433132fb6be4c42e2 /wqflask
parent3442637687ac5ea38318e48997bc1be736c787ea (diff)
downloadgenenetwork2-4f399a72197aad9821503aa6f916c396cb596a91.tar.gz
Ignore metadata when importing collection file
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/collect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py
index 9874b4a4..891da437 100644
--- a/wqflask/wqflask/collect.py
+++ b/wqflask/wqflask/collect.py
@@ -237,7 +237,7 @@ def import_collection():
file_path = os.path.join(TEMPDIR, import_file.filename)
import_file.save(file_path)
collection_csv = open(file_path, "r")
- traits = [row.strip() for row in collection_csv]
+ traits = [row.strip() for row in collection_csv if row[0] != "#"]
os.remove(file_path)
return json.dumps(traits)