Continue Flask migration.

This commit is contained in:
yohan 2024-06-02 23:42:55 +02:00
parent 354e0a9f05
commit 41c98d2b42

View File

@ -27,6 +27,7 @@ from sqlalchemy.dialects.sqlite import insert as sqlite_upsert
# python3-alembic 1.8.1-2 all lightweight database migration tool for SQLAlchemy - Python module
# python3-sqlalchemy 1.4.46+ds1-1 all SQL toolkit and Object Relational Mapper for Python 3
# python3-sqlalchemy-ext:i386 1.4.46+ds1-1+b1 i386 SQL toolkit and Object Relational Mapper for Python3 - C extension
# flask-restx 1.3.0
# Flask-SQLAlchemy documentation: https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/quickstart/
# We use SQLAlchemy ORM style 2.x: https://docs.sqlalchemy.org/en/20/tutorial/data_select.html
@ -214,9 +215,9 @@ Set_verbosity_model = api.model('Set_verbosity_Model', Set_verbosity_resource_fi
@ns_thermostat.route('/set_verbosity')
class Set_verbosity_thermostat(Resource):
@auth_required
#@api.expect(Set_verbosity_model, validate=True)
@api.marshall_with(Set_verbosity_model)
@auth_required
@api.marshal_with(Set_verbosity_model)
def put(self):
print(api.payload)
return "OK", 201