diff --git a/app.py b/app.py index a31b52a..4f5f6ce 100644 --- a/app.py +++ b/app.py @@ -87,7 +87,6 @@ def get_progress(list_id): percent = (purchased_count / total_count * 100) if total_count > 0 else 0 return purchased_count, total_count, percent - @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) @@ -169,6 +168,15 @@ def index_guest(): def page_not_found(e): return render_template('404.html'), 404 +@app.route('/favicon.svg') +def favicon(): + svg = ''' + + ''' + return svg, 200, {'Content-Type': 'image/svg+xml'} + @app.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'POST': @@ -587,7 +595,6 @@ def handle_check_item(data): 'percent': percent }, to=str(item.list_id)) - @socketio.on('uncheck_item') def handle_uncheck_item(data): item = Item.query.get(data['item_id']) @@ -615,8 +622,6 @@ def handle_update_note(data): db.session.commit() emit('note_updated', {'item_id': item_id, 'note': note}, to=str(item.list_id)) - - @app.cli.command('create_db') def create_db(): db.create_all() diff --git a/templates/base.html b/templates/base.html index 25b9705..7532065 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,6 +6,7 @@