From 98d3e7d41b66b108ee919b06f26649e073bf5761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20G=C3=BCtzkow?= <70779496+CJGutz@users.noreply.github.com> Date: Wed, 13 Mar 2024 22:20:26 +0100 Subject: [PATCH] make organization to list of responsible --- news/ical.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/news/ical.py b/news/ical.py index ed19e9f9c..242de7d5f 100644 --- a/news/ical.py +++ b/news/ical.py @@ -44,9 +44,12 @@ def item_location(self, item): return item.place def item_organizer(self, item): - if not item.responsible: - return "" - return f"{item.responsible.first_name} {item.responsible.last_name}" + return ",".join( + [ + f"{responsible.first_name} {responsible.last_name}" + for responsible in item.responsibles.all() + ] + ) class HSEventSingleFeed(HSEventFeed):