Update code.
This commit is contained in:
parent
9b33654fe6
commit
f85a1564b0
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user