aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-07-26 20:25:30 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-07-26 20:25:30 +0200
commitdb22180e1392758140a9fa5d046f09f22d6588f7 (patch)
tree5e3f2dceb4a9f3034395f19df73160a4bfba1c03
parentd5bb8e6434236b02d388fc910e46f2fdf1101123 (diff)
downloadfietsboek-db22180e1392758140a9fa5d046f09f22d6588f7.tar.gz
fietsboek-db22180e1392758140a9fa5d046f09f22d6588f7.tar.bz2
fietsboek-db22180e1392758140a9fa5d046f09f22d6588f7.zip
fix sorting key
-rw-r--r--fietsboek/models/track.py2
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=&quot;mb-0&quot;>{}</ul>").format(html_list)