From f21c65ac50fc32cff55eb407c9a3c741373fc4fc Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Tue, 31 Jan 2017 20:48:01 +0100 Subject: [PATCH] - Bugfix Migration of database for config_log_level - Bugfix Updater deleting temporary sourcefolder --- cps/helper.py | 2 +- cps/ub.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/helper.py b/cps/helper.py index 0aa7707b..a0867660 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -368,4 +368,4 @@ def update_source(source,destination): os.remove(item_path) except: print("Could not remove:"+item_path) - #shutil.rmtree(source, ignore_errors=True) + shutil.rmtree(source, ignore_errors=True) diff --git a/cps/ub.py b/cps/ub.py index 29d42fc0..183ea26e 100644 --- a/cps/ub.py +++ b/cps/ub.py @@ -325,7 +325,7 @@ def migrate_Database(): conn.execute("ALTER TABLE Settings ADD column `config_random_books` INTEGER DEFAULT 4") conn.execute("ALTER TABLE Settings ADD column `config_title_regex` String DEFAULT " "'^(A|The|An|Der|Die|Das|Den|Ein|Eine|Einen|Dem|Des|Einem|Eines)\s+'") - conn.execute("ALTER TABLE Settings ADD column `config_log_level` SmallInteger DEFAULT '" + logging.INFO + "'") + conn.execute("ALTER TABLE Settings ADD column `config_log_level` SmallInteger DEFAULT " + str(logging.INFO)) conn.execute("ALTER TABLE Settings ADD column `config_uploading` SmallInteger DEFAULT 0") conn.execute("ALTER TABLE Settings ADD column `config_anonbrowse` SmallInteger DEFAULT 0") conn.execute("ALTER TABLE Settings ADD column `config_public_reg` SmallInteger DEFAULT 0")