first_time_setup() checks os.stat(DATABASE).st_size == 0 to determine if schema needed. Between stat and schema execution, another concurrent request could run schema twice.\n\nFile: Backend/db/db.py, line ~10\nFix: Use file-level lock or SQLite PRAGMA user_version check
first_time_setup() checks os.stat(DATABASE).st_size == 0 to determine if schema needed. Between stat and schema execution, another concurrent request could run schema twice.\n\nFile: Backend/db/db.py, line ~10\nFix: Use file-level lock or SQLite PRAGMA user_version check