From 667612619b4344758e875bebc9027ce4d440bda3 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 1 May 2023 18:04:31 +0200 Subject: [PATCH 1/2] Fix current_version parsing for notifications Co-authored-by: Alexandre Aubin --- src/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.py b/src/app.py index 97227ed0c..a929f7e6b 100644 --- a/src/app.py +++ b/src/app.py @@ -3130,6 +3130,7 @@ def _notification_is_dismissed(name, settings): def _filter_and_hydrate_notifications(notifications, current_version=None, data={}): + current_version=str(current_version) def is_version_more_recent_than_current_version(name): # Boring code to handle the fact that "0.1 < 9999~ynh1" is False From 328d9276f0662d2023fba4e21802ba4013483b18 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 2 May 2023 13:16:38 +0200 Subject: [PATCH 2/2] Fix str(current_version) Co-authored-by: Alexandre Aubin --- src/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index a929f7e6b..59e58cde1 100644 --- a/src/app.py +++ b/src/app.py @@ -3130,8 +3130,8 @@ def _notification_is_dismissed(name, settings): def _filter_and_hydrate_notifications(notifications, current_version=None, data={}): - current_version=str(current_version) def is_version_more_recent_than_current_version(name): + current_version = str(current_version) # Boring code to handle the fact that "0.1 < 9999~ynh1" is False if "~" in name: