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