mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Presale: separate multiple lines by comma in ical event location (#3037)
This commit is contained in:
committed by
GitHub
parent
e8269ed1bf
commit
93950d3fac
@@ -57,7 +57,7 @@ def get_public_ical(events):
|
||||
vevent.add('summary').value = str(ev.name)
|
||||
vevent.add('dtstamp').value = creation_time
|
||||
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(
|
||||
event.organizer.slug, event.slug,
|
||||
ev.pk if not isinstance(ev, Event) else '0',
|
||||
|
||||
Reference in New Issue
Block a user