Skip to content

Commit

Permalink
V2.0.1 - Fixed issue with Update Notification that it would show even…
Browse files Browse the repository at this point in the history
… when an update wasn't available
  • Loading branch information
crocodilestick committed Aug 29, 2024
1 parent fe992e3 commit 6cec333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/app/calibre-web/cps/render_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cec333

Please sign in to comment.