Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- requirements-ci.txt +1 -0
- requirements.txt +1 -0
- src/api/routers/health.py +1 -1
requirements-ci.txt
CHANGED
|
@@ -33,6 +33,7 @@ postgrest==2.30.0
|
|
| 33 |
storage3==2.30.0
|
| 34 |
realtime==2.30.0
|
| 35 |
sqlalchemy==2.0.49
|
|
|
|
| 36 |
redis==7.4.0
|
| 37 |
upstash-redis==1.7.0
|
| 38 |
|
|
|
|
| 33 |
storage3==2.30.0
|
| 34 |
realtime==2.30.0
|
| 35 |
sqlalchemy==2.0.49
|
| 36 |
+
psycopg2-binary==2.9.9
|
| 37 |
redis==7.4.0
|
| 38 |
upstash-redis==1.7.0
|
| 39 |
|
requirements.txt
CHANGED
|
@@ -232,6 +232,7 @@ prometheus_client==0.25.0
|
|
| 232 |
prompt_toolkit==3.0.52
|
| 233 |
propcache==0.5.2
|
| 234 |
protobuf==6.33.6
|
|
|
|
| 235 |
psutil==7.2.2
|
| 236 |
py4j==0.10.9.9
|
| 237 |
pyarrow==23.0.1
|
|
|
|
| 232 |
prompt_toolkit==3.0.52
|
| 233 |
propcache==0.5.2
|
| 234 |
protobuf==6.33.6
|
| 235 |
+
psycopg2-binary==2.9.9
|
| 236 |
psutil==7.2.2
|
| 237 |
py4j==0.10.9.9
|
| 238 |
pyarrow==23.0.1
|
src/api/routers/health.py
CHANGED
|
@@ -134,7 +134,6 @@ async def readiness() -> JSONResponse:
|
|
| 134 |
@router.post("/run-migrations", summary="Trigger database migrations")
|
| 135 |
async def trigger_migrations() -> JSONResponse:
|
| 136 |
import os
|
| 137 |
-
import psycopg2
|
| 138 |
import traceback
|
| 139 |
logs = []
|
| 140 |
db_url = os.environ.get("SUPABASE_DB_URL")
|
|
@@ -145,6 +144,7 @@ async def trigger_migrations() -> JSONResponse:
|
|
| 145 |
)
|
| 146 |
|
| 147 |
try:
|
|
|
|
| 148 |
conn = psycopg2.connect(db_url, connect_timeout=5)
|
| 149 |
conn.autocommit = True
|
| 150 |
cursor = conn.cursor()
|
|
|
|
| 134 |
@router.post("/run-migrations", summary="Trigger database migrations")
|
| 135 |
async def trigger_migrations() -> JSONResponse:
|
| 136 |
import os
|
|
|
|
| 137 |
import traceback
|
| 138 |
logs = []
|
| 139 |
db_url = os.environ.get("SUPABASE_DB_URL")
|
|
|
|
| 144 |
)
|
| 145 |
|
| 146 |
try:
|
| 147 |
+
import psycopg2
|
| 148 |
conn = psycopg2.connect(db_url, connect_timeout=5)
|
| 149 |
conn.autocommit = True
|
| 150 |
cursor = conn.cursor()
|