Spaces:
Sleeping
Sleeping
Download scripts/check_enum.py from build-small-hackathon/CliniqAl: direct link, hf CLI and curl.
- Browser
- Download file 360 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/CliniqAl/resolve/refs%2Fpr%2F1/scripts/check_enum.py
- Command line
-
hf download hf://spaces/build-small-hackathon/CliniqAl@refs/pr/1/scripts/check_enum.py
-
curl -L -o check_enum.py https://huggingface.co/spaces/build-small-hackathon/CliniqAl/resolve/refs%2Fpr%2F1/scripts/check_enum.py
360 Bytes
| from sqlalchemy import text | |
| from app.db.session import SessionLocal | |
| with SessionLocal() as s: | |
| result = s.execute(text(""" | |
| SELECT enumlabel | |
| FROM pg_enum e | |
| JOIN pg_type t ON e.enumtypid = t.oid | |
| WHERE t.typname = 'booking_status' | |
| """)) | |
| print("booking_status enum values:") | |
| for row in result: | |
| print(row[0]) |