disable the sqlalchemy debug panels locally

This commit is contained in:
Son 2021-12-31 11:10:46 +01:00
parent 9ee449722a
commit e3d06f7a1d
1 changed files with 3 additions and 1 deletions

View File

@ -769,7 +769,9 @@ def local_main():
app.debug = True
DebugToolbarExtension(app)
app.config["DEBUG_TB_PANELS"] += ("flask_debugtoolbar_sqlalchemy.SQLAlchemyPanel",)
# disable the sqlalchemy debug panels because of "IndexError: pop from empty list" from:
# duration = time.time() - conn.info['query_start_time'].pop(-1)
# app.config["DEBUG_TB_PANELS"] += ("flask_debugtoolbar_sqlalchemy.SQLAlchemyPanel",)
app.run(debug=True, port=7777)