Add event detail to call for papers in weekly email

fixes #18
This commit is contained in:
Hugh Rundle 2024-11-09 09:58:40 +11:00
parent da58002f2f
commit 5ce0a679fb
Signed by: hugh
GPG key ID: A7E35779918253F9

View file

@ -133,11 +133,11 @@ class Command(BaseCommand):
for instance in cfps:
c_date = instance.closing_date
title_string = (
f"<h4><a href='{instance.event.url}'>{instance.name}</a></h4>"
f"<h4><a href='{instance.event.url}'>{instance.event.name} - {instance.name}</a></h4>"
)
dates_string = f"<p><strong>Closes:</strong><em>{c_date:%a} {c_date.day} {c_date:%B}</em></p>"
description_string = (
f"<p style='margin-bottom:24px;'>{instance.details}</p>"
f"<p>{instance.details}<p><p style='margin-bottom:24px;'>{instance.event.description}</p>"
)
string_list = [title_string, dates_string, description_string]