Skip to content

Commit

Permalink
Fixed bug in the Auto-Library function that resulted in the app.db no…
Browse files Browse the repository at this point in the history
…t always being correctly updated with the correct library path and fixed tabbing in layout.html
  • Loading branch information
crocodilestick committed Dec 11, 2024
1 parent 1a63a51 commit 7a95d5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions root/app/calibre-web/cps/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet" media="screen">
<link href="{{ url_for('static', filename='css/upload.css') }}" rel="stylesheet" media="screen">
{% if g.current_theme == 1 %}
<link href="{{ url_for('static', filename='css/caliBlur.css') }}" rel="stylesheet" media="screen">
<link href="{{ url_for('static', filename='css/caliBlur_override.css') }}" rel="stylesheet" media="screen">
<link href="{{ url_for('static', filename='css/caliBlur.css') }}" rel="stylesheet" media="screen">
<link href="{{ url_for('static', filename='css/caliBlur_override.css') }}" rel="stylesheet" media="screen">
{% endif %}
<script>
const flash_success = document.getElementById("flash_success");
Expand Down
2 changes: 1 addition & 1 deletion scripts/auto_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def update_calibre_web_db(self):
print("[cwa-auto-library]: Updating Settings Database with library location...")
con = sqlite3.connect(self.app_db)
cur = con.cursor()
cur.execute("UPDATE settings SET config_calibre_dir = ?;", (self.lib_path,))
cur.execute(f'UPDATE settings SET config_calibre_dir="{self.lib_path}";')
con.commit()
return
except Exception as e:
Expand Down

0 comments on commit 7a95d5a

Please sign in to comment.