From a24dc407949be0bd521e67cf44b24029a22e13c7 Mon Sep 17 00:00:00 2001 From: Chloe Carver-Brown Date: Fri, 20 May 2022 19:41:49 +0100 Subject: [PATCH] hopefully fix favicon Signed-off-by: Chloe Carver-Brown --- templates/latest.html | 1 + templates/stats.html | 1 + twitfix.py | 11 +---------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/templates/latest.html b/templates/latest.html index e954c20..a3fb137 100644 --- a/templates/latest.html +++ b/templates/latest.html @@ -2,6 +2,7 @@ + diff --git a/templates/stats.html b/templates/stats.html index 8c1490c..3db9f79 100644 --- a/templates/stats.html +++ b/templates/stats.html @@ -1,6 +1,7 @@ Twxtter Stats + diff --git a/twitfix.py b/twitfix.py index 1042052..d0c1220 100644 --- a/twitfix.py +++ b/twitfix.py @@ -480,15 +480,6 @@ def dir(sub_path): return redirect(url, 301) -@app.route("/favicon.ico") # This shit don't work -def favicon(): - return send_from_directory( - os.path.join(app.root_path, "static"), - "favicon.ico", - mimetype="image/vnd.microsoft.icon", - ) - - def direct_video(video_link): # Just get a redirect to a MP4 link from any tweet link cached_vnf = getVnfFromLinkCache(video_link) if cached_vnf == None: @@ -564,7 +555,7 @@ def embed_video(video_link, image=0, raw=False): # Return Embed from any tweet def tweetInfo( - url, + url="", tweet="", desc="", thumb="",