Fix unexpected keyword argument 'favicon_path'

This commit is contained in:
CaliBrain
2024-12-18 08:34:01 -05:00
committed by GitHub
parent 250cded7fe
commit 242af69099
+4 -4
View File
@@ -63,9 +63,9 @@ def index():
"""
return render_template('index.html')
@app.route('/favico<path:favicon_path>')
@app.route('/request/favico<path:favicon_path>')
@app.route('/request/static/favico<path:favicon_path>')
@app.route('/favico<path:_>')
@app.route('/request/favico<path:_>')
@app.route('/request/static/favico<path:_>')
def favicon(_):
return send_from_directory(os.path.join(app.root_path, 'static', 'media'),
'favicon.ico', mimetype='image/vnd.microsoft.icon')
@@ -230,4 +230,4 @@ if __name__ == '__main__':
host=FLASK_HOST,
port=FLASK_PORT,
debug=FLASK_DEBUG # Disable debug mode in production
)
)