From 7cb36eb1af136f952b942ff052e81c8ae992ecdf Mon Sep 17 00:00:00 2001 From: mxr612 Date: Mon, 16 Jun 2025 06:39:49 +0800 Subject: [PATCH] fix: update database URL to point to public directory - Changed the SQLALCHEMY_DATABASE_URL to use the public directory for the SQLite database file, ensuring proper access and organization of database resources. --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index 344e544..2488466 100644 --- a/database.py +++ b/database.py @@ -4,7 +4,7 @@ from sqlalchemy.orm import sessionmaker, relationship from datetime import datetime, UTC import json -SQLALCHEMY_DATABASE_URL = "sqlite:///./psychoscales.db" +SQLALCHEMY_DATABASE_URL = "sqlite:///./public/psychoscales.db" engine = create_engine( SQLALCHEMY_DATABASE_URL,