From 63996d45aa881a68659da543b96887869cd32776 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sat, 29 Nov 2014 01:03:15 -0800 Subject: [PATCH] Update command now saves its .prices file --- CHANGES.txt | 1 + commands/update_cmd.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 78c7a9e6..02a2e964 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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" diff --git a/commands/update_cmd.py b/commands/update_cmd.py index 9e3a767f..9a946ce5 100644 --- a/commands/update_cmd.py +++ b/commands/update_cmd.py @@ -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