From 4b699c2210daee32fd2442330d4201a84d90415c Mon Sep 17 00:00:00 2001
From: 2000-Trek
Date: Fri, 23 Jun 2023 20:23:41 +0200
Subject: [PATCH] favicon
---
main.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/main.py b/main.py
index 40d18b6..792b15b 100644
--- a/main.py
+++ b/main.py
@@ -1,5 +1,5 @@
-import queue, sqlite3, time, atexit, sys, uuid, json, urllib.parse, logging, datetime
-from flask import Flask, render_template, request, make_response, session
+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_socketio import SocketIO, join_room, leave_room
from flask_session import Session
from markupsafe import escape
@@ -36,6 +36,10 @@ def exit_handler():
sys.exit("Program sucsesfully exited")
#website
+@app.route('/favicon.ico')
+def favicon():
+ return send_from_directory(os.path.join(app.root_path, 'static'),'favicon.ico',mimetype='Logo_CCC.icon')
+
@app.route("/")
def index():
return 'user and tag list The creator of this website accepts no liability for any linguistic or technical errors!
Doumentation'
@@ -50,6 +54,7 @@ def list():
text = text + f'{escape(i[1])}: {i[2]}
'
return '''
+