Fix location field in private ICS files

This commit is contained in:
Raphael Michel
2023-02-24 10:28:34 +01:00
parent 6a8ebcca1a
commit c2d720b3b9

View File

@@ -150,7 +150,7 @@ def get_private_icals(event, positions):
vevent.add('description').value = description vevent.add('description').value = description
vevent.add('dtstamp').value = creation_time vevent.add('dtstamp').value = creation_time
if ev.location: if ev.location:
vevent.add('location').value = str(ev.location) vevent.add('location').value = ", ".join(l.strip() for l in str(ev.location).splitlines() if l.strip())
vevent.add('uid').value = 'pretix-{}-{}-{}@{}'.format( vevent.add('uid').value = 'pretix-{}-{}-{}@{}'.format(
event.organizer.slug, event.organizer.slug,