Skip to content

Commit c043982

Browse files
Fix for 500 Error for new users on V3.0.0
1 parent 2bcb981 commit c043982

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

empty_library/app.db

0 Bytes
Binary file not shown.

scripts/cwa_db.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ def get_cwa_settings(self) -> dict:
236236
if self.cur.fetchall() == []: # If settings table is empty, populates it with default values
237237
self.cur.execute("INSERT INTO cwa_settings DEFAULT VALUES;")
238238
self.con.commit()
239+
240+
self.cur.execute("SELECT * FROM cwa_settings")
239241
headers = [header[0] for header in self.cur.description]
240242
cwa_settings = [dict(zip(headers,row)) for row in self.cur.fetchall()][0]
241243

0 commit comments

Comments
 (0)