From db22180e1392758140a9fa5d046f09f22d6588f7 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 26 Jul 2023 20:25:30 +0200 Subject: fix sorting key --- fietsboek/models/track.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fietsboek/models/track.py b/fietsboek/models/track.py index 8025f6a..a78e56a 100644 --- a/fietsboek/models/track.py +++ b/fietsboek/models/track.py @@ -613,7 +613,7 @@ class TrackWithMetadata: :return: The generated HTML. """ people = [self.owner] + list(self.tagged_people) - people.sort(key=lambda p: p.name) + people.sort(key=lambda p: p.name or "") html_list = "".join(Markup("
  • {}
  • ").format(person.name) for person in people) return Markup("").format(html_list) -- cgit v1.2.3