diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-07-26 20:25:30 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-07-26 20:25:30 +0200 |
commit | db22180e1392758140a9fa5d046f09f22d6588f7 (patch) | |
tree | 5e3f2dceb4a9f3034395f19df73160a4bfba1c03 | |
parent | d5bb8e6434236b02d388fc910e46f2fdf1101123 (diff) | |
download | fietsboek-db22180e1392758140a9fa5d046f09f22d6588f7.tar.gz fietsboek-db22180e1392758140a9fa5d046f09f22d6588f7.tar.bz2 fietsboek-db22180e1392758140a9fa5d046f09f22d6588f7.zip |
fix sorting key
-rw-r--r-- | fietsboek/models/track.py | 2 |
1 files changed, 1 insertions, 1 deletions
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("<li>{}</li>").format(person.name) for person in people) return Markup("<ul class="mb-0">{}</ul>").format(html_list) |