diff options
author | Armin <Armin@Armin-PC.diedering.lan> | 2015-04-21 21:02:37 +0200 |
---|---|---|
committer | Armin <Armin@Armin-PC.diedering.lan> | 2015-04-21 21:02:37 +0200 |
commit | 26559343235fce1419b4d7cc33a02ceadf265836 (patch) | |
tree | dcede763f7a95678740563817d01644cc20097cf | |
parent | Merge pull request #5 from vuolter/0.4.10 (diff) | |
download | pyload-26559343235fce1419b4d7cc33a02ceadf265836.tar.xz |
convert DB only if needed
-rw-r--r-- | pyload/database/Backend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/database/Backend.py b/pyload/database/Backend.py index e851885c0..1fa7a654c 100644 --- a/pyload/database/Backend.py +++ b/pyload/database/Backend.py @@ -186,11 +186,11 @@ class DatabaseBackend(Thread): print "Filedatabase was deleted due to incompatible version." remove("files.version") move("files.db", "files.backup.db") - + with open("files.version", "wb") as f: f.write(str(DB_VERSION)) - return v + return v def _convertDB(self, v): |