Logo with red icon added

This commit is contained in:
klaasgoethals 2019-02-13 21:41:07 +01:00
parent eece1844f2
commit 65b27f7668

View file

@ -48,7 +48,10 @@ def profile():
@app.route('/favicon.ico')
def favicon():
if len(get_orders((Order.stoptime > datetime.now()))) == 0:
return send_from_directory(os.path.join(app.root_path, 'static'), 'favicon.ico', mimetype='image/x-icon')
else:
return send_from_directory(os.path.join(app.root_path, 'static'), 'favicon_orange.ico', mimetype='image/x-icon')
if app.debug: # add route information