Skip to content

Commit

Permalink
Update command now saves its .prices file
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Nov 29, 2014
1 parent 6a4434a commit 63996d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TradeDangerous, Copyright (C) Oliver "kfsone" Smith, July 2014
==============================================================================

v6.1.2 Nov 28 2014
. (kfsone) GUI now saves its updates as "updated.prices" so you can upload them
. (kfsone) "run" now accepts a system OR station as the destination
. (kfsone) System/Station name lookups are more friendly again
. (kfsone) '-q' now silences "unknown ..." warnings when importing with "-i"
Expand Down
4 changes: 4 additions & 0 deletions commands/update_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ def editUpdate(tdb, cmdenv, stationID):
else:
cache.importDataFromFile(tdb, cmdenv, tmpPath)

savePath = Path("updated.prices")
if savePath.exists():
savePath.unlink()
tmpPath.rename(savePath)
tmpPath.unlink()
tmpPath = None

Expand Down

0 comments on commit 63996d4

Please sign in to comment.