Fix str(current_version)

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
tituspijean 2023-05-02 13:16:38 +02:00 committed by GitHub
parent 667612619b
commit 328d9276f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: