Skip to content

Commit

Permalink
Fixed typos in cwa_db.py
Browse files Browse the repository at this point in the history
  • Loading branch information
crocodilestick committed Nov 1, 2024
1 parent ae796f3 commit d6ca3c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/auto-library.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion scripts/cwa_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit d6ca3c6

Please sign in to comment.