Spaces:
Runtime error
Runtime error
Download tests/inspect_db.py from Darshankumarr03/Swift-Query: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/tests/inspect_db.py
- Command line
-
hf download hf://spaces/Darshankumarr03/Swift-Query/tests/inspect_db.py
-
curl -L -o inspect_db.py https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/tests/inspect_db.py
365 Bytes
| from main import app, db, Patient, Doctor | |
| with app.app_context(): | |
| print("--- PATIENT LIST ---") | |
| for p in Patient.query.all(): | |
| print(f"UID:{p.id},Name:'{p.name}',Email:'{p.email}',Pwd:'{p.password}'") | |
| print("--- DOCTOR LIST ---") | |
| for d in Doctor.query.all(): | |
| print(f"UID:{d.id},Name:'{d.name}',Email:'{d.email}',Pwd:'{d.password}'") | |