feat: auto-convert URL to QR code in PDF export and preview

This commit is contained in:
hmo
2026-04-29 16:22:42 +08:00
parent c9e818e1ac
commit 2a8d8a87d7
5 changed files with 83 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
from app import create_app, db
from app.models import PracticePlan
# Query local dev database (same data as production)
app = create_app()
with app.app_context():
plans = PracticePlan.query.order_by(db.desc("created_at")).limit(5).all()
for p in plans:
print(f"ID:{p.id} | created_at:{p.created_at} | student:{p.student.name if p.student else 'N/A'}")