From 6cec33374ae8a400d7e7a153410c5344bb5dd33c Mon Sep 17 00:00:00 2001 From: CrocodileStick <105450872+crocodilestick@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:37:23 +0000 Subject: [PATCH] V2.0.1 - Fixed issue with Update Notification that it would show even when an update wasn't available --- root/app/calibre-web/cps/render_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/app/calibre-web/cps/render_template.py b/root/app/calibre-web/cps/render_template.py index bd34d27..a2e30ec 100644 --- a/root/app/calibre-web/cps/render_template.py +++ b/root/app/calibre-web/cps/render_template.py @@ -114,7 +114,7 @@ def get_sidebar_config(kwargs=None): # Checks if an update for CWA is available, returning True if yes def cwa_update_available() -> tuple[bool, str, str]: with open("/app/CWA_RELEASE", 'r') as f: - current_version = f.read() + current_version = f.read().strip() response = requests.get("https://api.github.com/repos/crocodilestick/calibre-web-automated/releases/latest") tag_name = response.json()['tag_name'] return (tag_name != current_version), current_version, tag_name