Skip to content

Commit

Permalink
fixes #90 import fails if trying to import from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 18, 2014
1 parent 2d7123e commit b6f3a49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,9 @@ def buildCache(tdb, tdenv):
elif not tdenv.quiet:
print("NOTE: Missing \"{}\" file - no price data".format(
str(pricesPath)
), file=sys.stderr)
), file=sys.stderr)

tempDB.commit()
tempDB.close()

tdenv.DEBUG0("Swapping out db files")
Expand Down
2 changes: 1 addition & 1 deletion commands/import_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)
name='import'
epilog=None
wantsTradeDB=False
wantsTradeDB=True
arguments = [
]
switches = [
Expand Down

0 comments on commit b6f3a49

Please sign in to comment.