From f528cdb46cbdee233c075541b8364b5165a2680f Mon Sep 17 00:00:00 2001 From: metalune Date: Sun, 18 Jul 2021 00:14:56 +0200 Subject: [PATCH] Remove 'commit' in the footer --- main.py | 21 --------------------- templates/base.html | 3 --- templates/index.html | 5 ----- templates/simpleer_search_results.html | 4 ---- 4 files changed, 33 deletions(-) diff --git a/main.py b/main.py index f524213..fe7b43c 100644 --- a/main.py +++ b/main.py @@ -7,13 +7,6 @@ import html2text h2t = html2text.HTML2Text() h2t.ignore_links = True -commit = "not found" -with open(".git/refs/heads/main") as file: - for line in file: - commit = line - # we only expect one line - break - # Wrapper, only containing information that's important for us, and in some cases provides simplified ways to get information class VideoWrapper: def __init__(self, a, quality): @@ -112,7 +105,6 @@ app = Quart(__name__) async def main(): return await render_template( "index.html", - commit=commit, ) @app.route("/search", methods = ["POST"]) @@ -126,7 +118,6 @@ async def simpleer_search(query, page): results = peertube.sepia_search(query, (page - 1) * 10) return await render_template( "simpleer_search_results.html", - commit=commit, results = results, @@ -151,7 +142,6 @@ async def instance_videos_local(domain, page): "instance/local.html", domain=domain, instance_name=get_instance_name(domain), - commit=commit, videos = vids, @@ -169,7 +159,6 @@ async def instance_videos_trending(domain, page): "instance/trending.html", domain=domain, instance_name=get_instance_name(domain), - commit=commit, videos = vids, @@ -188,7 +177,6 @@ async def instance_videos_most_liked(domain, page): "instance/most-liked.html", domain=domain, instance_name=get_instance_name(domain), - commit=commit, videos = vids, @@ -207,7 +195,6 @@ async def instance_videos_recently_added(domain, page): "instance/recently-added.html", domain=domain, instance_name=get_instance_name(domain), - commit=commit, videos = vids, @@ -234,7 +221,6 @@ async def search(domain, term, page): "search_results.html", domain=domain, instance_name=get_instance_name(domain), - commit=commit, results=results, search_term=term, @@ -272,7 +258,6 @@ async def video(domain, id): return await render_template( "video.html", domain=domain, - commit=commit, instance_name=get_instance_name(domain), video=vid, @@ -300,7 +285,6 @@ async def account__video_channels(domain, name, page): return await render_template( "accounts/video_channels.html", domain=domain, - commit=commit, instance_name=get_instance_name(domain), name = name, @@ -320,7 +304,6 @@ async def account__videos(domain, name, page): return await render_template( "accounts/videos.html", domain=domain, - commit=commit, instance_name=get_instance_name(domain), name = name, @@ -338,7 +321,6 @@ async def account__about(domain, name): return await render_template( "accounts/about.html", domain=domain, - commit=commit, instance_name=get_instance_name(domain), name = name, @@ -359,7 +341,6 @@ async def video_channels__videos(domain, name, page): return await render_template( "video_channels/videos.html", domain=domain, - commit=commit, instance_name=get_instance_name(domain), name = name, @@ -377,7 +358,6 @@ async def video_channels__video_playlists(domain, name, page): return await render_template( "video_channels/video_playlists.html", domain=domain, - commit=commit, instance_name=get_instance_name(domain), name = name, @@ -394,7 +374,6 @@ async def video_channels__about(domain, name): return await render_template( "video_channels/about.html", domain=domain, - commit=commit, instance_name=get_instance_name(domain), name = name, diff --git a/templates/base.html b/templates/base.html index f57d4f1..5aafb37 100644 --- a/templates/base.html +++ b/templates/base.html @@ -61,8 +61,5 @@ {% endif %} {% endif %} {% endif %} - diff --git a/templates/index.html b/templates/index.html index e1ce094..62ef70c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,11 +14,6 @@ -
-
- diff --git a/templates/simpleer_search_results.html b/templates/simpleer_search_results.html index 2aafbed..0b03ee8 100644 --- a/templates/simpleer_search_results.html +++ b/templates/simpleer_search_results.html @@ -59,9 +59,5 @@ Next {% endif %} {% endif %} - -