Cleanup matrix formatting

This commit is contained in:
Felix Albrigtsen 2023-08-18 01:21:03 +02:00
parent 0109645b0f
commit 3b8e971e00
1 changed files with 3 additions and 4 deletions

View File

@ -18,14 +18,13 @@ async def sendMatrixAnnouncement(event: Event, channel: str = ANNOUNCEMENT_CHANN
url = "https://www.pvv.ntnu.no/hendelser/info.php?id={}".format(event.id)
msgText = '''\
## Dagens arrangement / Event of the Day: "{name}"
#### 🕒 {start}
#### 📍 {location}
#### 🛂 av / by "{organizer}"
- 🕒 **{start}**
- 📍 **{location}**
{description}
[Les mer / Read More]({url})
'''.format(name=event.name, start=event.start.strftime('%H:%M'), location=event.location, organizer=event.organizer, description=event.description, url=url)
'''.format(name=event.name, start=event.start.strftime('%H:%M'), location=event.location, description=event.description, url=url)
msgText = dedent(msgText)