cleanup and fixes

This commit is contained in:
Aaron Kimbre 2022-04-03 11:35:53 -05:00
parent 1113295c5b
commit f1d79f1e90
2 changed files with 4 additions and 9 deletions

View File

@ -82,14 +82,6 @@ def create_app():
if cdclient is not None:
cdclient.close()
# @app.errorhandler(Exception)
# def handle_exception(e):
# app.logger.error(e)
# # pass through HTTP errors
# if isinstance(e, HTTPException):
# return e
# # now you're handling non-HTTP exceptions only
# return render_template("status_codes/500.html.j2", exception=e), 500
# add the commands to flask cli
app.cli.add_command(init_db)

View File

@ -76,7 +76,10 @@ def get_icon_lot(id):
one=True
)[0]
if filename:
filename = filename.replace("..\\", "").replace("\\", "/")
else:
return redirect(url_for('luclient.unknown'))
cache = f'app/cache/{filename.split(".")[0]}.png'