Spaces:
Runtime error
Runtime error
File size: 320 Bytes
ed0b977 | 1 2 3 4 5 6 7 8 9 10 11 | 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.")
|