Skip to content

Commit

Permalink
change command.py to allow fields to be in full metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralVerity committed Sep 11, 2020
1 parent e7606c9 commit b90f5f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions civet/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ def main(sysargs = sys.argv[1:]):
else:
desired_fields = args.fields.split(",")
for field in desired_fields:
if field in reader.fieldnames:
if field in reader.fieldnames or field in full_metadata_headers:
fields.append(field)
else:
sys.stderr.write(f"Error: {field} field not found in metadata file")
sys.stderr.write(f"Error: {field} field not found in metadata file or full metadata file")
sys.exit(-1)


Expand Down

0 comments on commit b90f5f7

Please sign in to comment.