Swift-Query / tests /reset_password.py
Darshan Kumar R
Deploy to Hugging Face Spaces (Clean)
ed0b977
Raw History Blame Contribute Delete
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.")