Merge pull request #1655 from YunoHost/fix-notifs

This commit is contained in:
tituspijean 2023-05-02 13:16:52 +02:00 committed by GitHub
commit d5cc3dc13d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3131,6 +3131,7 @@ def _notification_is_dismissed(name, settings):
def _filter_and_hydrate_notifications(notifications, current_version=None, data={}): def _filter_and_hydrate_notifications(notifications, current_version=None, data={}):
def is_version_more_recent_than_current_version(name): 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 # Boring code to handle the fact that "0.1 < 9999~ynh1" is False
if "~" in name: if "~" in name: