Fix current_version parsing for notifications

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
tituspijean 2023-05-01 18:04:31 +02:00 committed by GitHub
parent 8fbdd228ab
commit 667612619b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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