diff options
author | zsloan | 2022-05-10 19:38:51 +0000 |
---|---|---|
committer | zsloan | 2022-05-10 19:39:27 +0000 |
commit | 4f399a72197aad9821503aa6f916c396cb596a91 (patch) | |
tree | c72f75ca6d6ab52f4098871433132fb6be4c42e2 /wqflask | |
parent | 3442637687ac5ea38318e48997bc1be736c787ea (diff) | |
download | genenetwork2-4f399a72197aad9821503aa6f916c396cb596a91.tar.gz |
Ignore metadata when importing collection file
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/collect.py | 2 |
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) |