diff --git a/shelfmark/core/admin_routes.py b/shelfmark/core/admin_routes.py index 16da5e9..b969d00 100644 --- a/shelfmark/core/admin_routes.py +++ b/shelfmark/core/admin_routes.py @@ -134,7 +134,7 @@ def _sync_all_cwa_users(user_db: UserDB) -> dict[str, int]: raise FileNotFoundError(msg) db_path = os.fspath(CWA_DB_PATH) - db_uri = f"file:{db_path}?mode=ro&immutable=1" + db_uri = f"file:{db_path}?mode=ro" conn = sqlite3.connect(db_uri, uri=True) try: cur = conn.cursor() diff --git a/shelfmark/main.py b/shelfmark/main.py index 777fbea..fc63a35 100644 --- a/shelfmark/main.py +++ b/shelfmark/main.py @@ -2091,7 +2091,7 @@ def api_login() -> Response | tuple[Response, int]: try: db_path = os.fspath(CWA_DB_PATH) - db_uri = f"file:{db_path}?mode=ro&immutable=1" + db_uri = f"file:{db_path}?mode=ro" conn = sqlite3.connect(db_uri, uri=True) cur = conn.cursor() cur.execute("SELECT password, role, email FROM user WHERE name = ?", (username,))