diff --git a/cache.py b/cache.py index b47ff6cb..38952071 100644 --- a/cache.py +++ b/cache.py @@ -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") diff --git a/commands/import_cmd.py b/commands/import_cmd.py index 394b10d2..adba68f1 100644 --- a/commands/import_cmd.py +++ b/commands/import_cmd.py @@ -20,7 +20,7 @@ ) name='import' epilog=None -wantsTradeDB=False +wantsTradeDB=True arguments = [ ] switches = [