Files
ProjectIOT/app_seed.py
2025-04-25 17:40:25 +02:00

8 lines
200 B
Python

from application import db, app
from application.models import AllowedPlate
with app.app_context():
AllowedPlate.query.delete()
db.session.add(AllowedPlate("MUN389"))
db.session.commit()