This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2022-09-29 14:58:30 +00:00
|
|
|
from werkzeug.middleware.profiler import ProfilerMiddleware
|
2021-12-01 12:44:24 +00:00
|
|
|
|
2022-09-29 14:58:30 +00:00
|
|
|
from ereuse_devicehub.devicehub import Devicehub
|
2021-12-01 12:44:24 +00:00
|
|
|
|
|
|
|
app = Devicehub(inventory='dbtest')
|
|
|
|
app.config["SQLALCHEMY_RECORD_QUERIES"] = True
|
|
|
|
app.config['PROFILE'] = True
|
|
|
|
app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30])
|
2022-09-29 14:58:30 +00:00
|
|
|
app.run(debug=True)
|