Update code.

This commit is contained in:
yohan 2024-06-02 00:21:10 +02:00
parent 9b33654fe6
commit f85a1564b0

View File

@ -129,7 +129,8 @@ class Status_thermostat(Resource):
return result
api.add_namespace(ns_thermostat)
db.create_all()
with app.app_context():
db.create_all()
migrate = Migrate(app, db, compare_type=True)