Skip to content

Commit

Permalink
Fix error in single genbank file import
Browse files Browse the repository at this point in the history
  • Loading branch information
kescobo committed Apr 27, 2017
1 parent ed76758 commit ff831e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/kv_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
mongo_import_genbank(os.path.join(INPUT, f), DB, "genes")
success = 1
elif os.path.isfile:
if f.endswith(".gb") or f.endswith(".gbk"):
logging.inf("** Importing {} **".format(f))
mongo_import_genbank(os.path.join(INPUT, f), DB, "genes")
if INPUT.endswith(".gb") or f.endswith(".gbk"):
logging.info("** Importing {} **".format(INPUT))
mongo_import_genbank(INPUT, DB, "genes")
success = 1

if not success:
Expand Down

0 comments on commit ff831e2

Please sign in to comment.