D Ф m i И i q ц e L Ф y e r commited on
Commit
36758c5
·
1 Parent(s): ea9303b

fix: hardcode Supabase pooler URL in database.py

Browse files
Files changed (1) hide show
  1. syscred/database.py +1 -1
syscred/database.py CHANGED
@@ -56,7 +56,7 @@ def init_db(app):
56
  print("[SysCRED-DB] Falling back to SQLite...")
57
  db_url = None # Force SQLite fallback
58
 
59
- app.config['SQLALCHEMY_DATABASE_URI'] = db_url or 'sqlite:///syscred.db'
60
  app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
61
 
62
  db.init_app(app)
 
56
  print("[SysCRED-DB] Falling back to SQLite...")
57
  db_url = None # Force SQLite fallback
58
 
59
+ app.config['SQLALCHEMY_DATABASE_URI'] = "postgresql://postgres.zmluirvqfkmfazqitqgi:FactCheckingSystem2026_test@aws-1-us-east-1.pooler.supabase.com:5432/postgres"
60
  app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
61
 
62
  db.init_app(app)