From 4f399a72197aad9821503aa6f916c396cb596a91 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 10 May 2022 19:38:51 +0000 Subject: Ignore metadata when importing collection file --- wqflask/wqflask/collect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3