From d6ca3c67d334ee3966bca894ec92914253f75c91 Mon Sep 17 00:00:00 2001 From: crocodilestick <105450872+crocodilestick@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:55:12 +0000 Subject: [PATCH] Fixed typos in cwa_db.py --- scripts/auto-library.py | 6 +++--- scripts/cwa_db.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/auto-library.py b/scripts/auto-library.py index 3d2804e..759b019 100644 --- a/scripts/auto-library.py +++ b/scripts/auto-library.py @@ -94,10 +94,10 @@ def update_calibre_web_db(self): if os.path.exists(self.metadb_path): try: print("[cwa-auto-library]: Updating Settings Database with library location...") - conn = sqlite3.connect(self.app_db) - cur = conn.cursor() + con = sqlite3.connect(self.app_db) + cur = con.cursor() cur.execute("UPDATE settings SET config_calibre_dir = ?;", (self.lib_path,)) - conn.commit() + con.commit() return except Exception as e: print("[cwa-auto-library]: ERROR: Could not update Calibre Web Database") diff --git a/scripts/cwa_db.py b/scripts/cwa_db.py index d1cba47..579e5aa 100644 --- a/scripts/cwa_db.py +++ b/scripts/cwa_db.py @@ -33,7 +33,7 @@ def __init__(self, verbose=False): def temp_disable_split_library(self): # Temporary measure to disable split library functionality until it can be supported in V2.2.0 con = sqlite3.connect("/config/app.db") - cur = conn.cursor() + cur = con.cursor() current_split_setting = bool(cur.execute("SELECT config_calibre_split FROM settings").fetchone()[0])