Spaces:
Runtime error
Runtime error
Download tests/debug_patients.py from Darshankumarr03/Swift-Query: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/tests/debug_patients.py
- Command line
-
hf download hf://spaces/Darshankumarr03/Swift-Query/tests/debug_patients.py
-
curl -L -o debug_patients.py https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/tests/debug_patients.py
376 Bytes
| from main import app, db, Patient | |
| with app.app_context(): | |
| print("--- Inspecting Patient Table ---") | |
| patients = Patient.query.all() | |
| if not patients: | |
| print("No patients found in the database.") | |
| for p in patients: | |
| print(f"ID: {p.id} | Name: '{p.name}' | Email: '{p.email}' | Password: '{p.password}'") | |
| print("------------------------------") | |