Cleanup matrix formatting
This commit is contained in:
parent
0109645b0f
commit
3b8e971e00
|
@ -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)
|
url = "https://www.pvv.ntnu.no/hendelser/info.php?id={}".format(event.id)
|
||||||
msgText = '''\
|
msgText = '''\
|
||||||
## Dagens arrangement / Event of the Day: "{name}"
|
## Dagens arrangement / Event of the Day: "{name}"
|
||||||
#### 🕒 {start}
|
- 🕒 **{start}**
|
||||||
#### 📍 {location}
|
- 📍 **{location}**
|
||||||
#### 🛂 av / by "{organizer}"
|
|
||||||
|
|
||||||
{description}
|
{description}
|
||||||
|
|
||||||
[Les mer / Read More]({url})
|
[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)
|
msgText = dedent(msgText)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue