From c87df6e61d9a4be34f1fc43f790dd2b8f957b737 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 7 Apr 2015 09:25:33 -0700 Subject: [PATCH] minor tweaks --- .gitignore | 5 ++--- cache.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 9c358b33..c3f96334 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,10 @@ __pycache__ import.txt tmp -*2.py -*.laccdb *.pyc data/TradeDangerous.db +data/TradeDangerous.old data/TradeDangerous.db-journal data/TradeDangerous.prices data/*.stamp @@ -16,9 +15,9 @@ data/*.txt *.suo *.pyperf misc/*.csv -market/ *.orig *.prev +*.last wip/ pycallgraph.png diff --git a/cache.py b/cache.py index 7640edaf..50350c3f 100644 --- a/cache.py +++ b/cache.py @@ -1107,7 +1107,7 @@ def buildCache(tdb, tdenv): # Create an in-memory database to populate with our data. tempPath = dbPath.with_suffix(".new") - backupPath = dbPath.with_suffix(".prev") + backupPath = dbPath.with_suffix(".old") if tempPath.exists(): tempPath.unlink()