1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-01-03 05:50:30 +00:00

Merge remote-tracking branch 'whatsapp/patch-4'

This commit is contained in:
Ozzie Isaacs 2024-11-23 10:06:22 +01:00
commit ebb7ddec44

View File

@ -658,6 +658,7 @@ class CalibreDB:
connect_args={'check_same_thread': False},
poolclass=StaticPool)
with cls.engine.begin() as connection:
connection.execute(text('PRAGMA cache_size = 10000;'))
connection.execute(text("attach database '{}' as calibre;".format(dbpath)))
connection.execute(text("attach database '{}' as app_settings;".format(app_db_path)))