From 26559343235fce1419b4d7cc33a02ceadf265836 Mon Sep 17 00:00:00 2001 From: Armin Date: Tue, 21 Apr 2015 21:02:37 +0200 Subject: convert DB only if needed --- pyload/database/Backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload') 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): -- cgit v1.2.3