Spaces:
Runtime error
Runtime error
Download tests/reset_password.py from Darshankumarr03/Swift-Query: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/tests/reset_password.py
- Command line
-
hf download hf://spaces/Darshankumarr03/Swift-Query/tests/reset_password.py
-
curl -L -o reset_password.py https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/tests/reset_password.py
320 Bytes
| from main import app, db, Patient | |
| with app.app_context(): | |
| p = Patient.query.filter_by(name="Darshan").first() | |
| if p: | |
| p.password = "password" | |
| db.session.commit() | |
| print(f"SUCCESS: Reset password for '{p.name}' to 'password'.") | |
| else: | |
| print("ERROR: Patient 'Darshan' not found.") | |