From a2e74edaa83ace1ed705cac6d431f75d5ff12b66 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 23 Jun 2023 20:36:26 +0200 Subject: [PATCH] test --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 642d05b..12fb45a 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ +from fileinput import filename import queue, sqlite3, time, atexit, sys, uuid, json, urllib.parse, logging, datetime, os -from flask import Flask, render_template, request, make_response, session, send_from_directory +from flask import Flask, render_template, request, make_response, session, url_for from flask_socketio import SocketIO, join_room, leave_room from flask_session import Session from markupsafe import escape @@ -38,7 +39,7 @@ def exit_handler(): #website @app.route('/favicon.ico') def favicon(): - return send_from_directory(os.path.join(app.root_path, 'static'),'favicon.ico',mimetype='Logo_CCC.svg.png') + return url_for('static', filename='image/Logo_CCC.svg.png') @app.route("/") def index():