Compare commits
4 commits
e814c9f981
...
cda4b61b4b
Author | SHA1 | Date | |
---|---|---|---|
Hugh Rundle | cda4b61b4b | ||
Hugh Rundle | 56094b9e7e | ||
Hugh Rundle | 507d6d3508 | ||
Hugh Rundle | 5ce0a679fb |
|
@ -133,11 +133,11 @@ class Command(BaseCommand):
|
||||||
for instance in cfps:
|
for instance in cfps:
|
||||||
c_date = instance.closing_date
|
c_date = instance.closing_date
|
||||||
title_string = (
|
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>"
|
dates_string = f"<p><strong>Closes:</strong><em>{c_date:%a} {c_date.day} {c_date:%B}</em></p>"
|
||||||
description_string = (
|
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]
|
string_list = [title_string, dates_string, description_string]
|
||||||
|
|
Loading…
Reference in a new issue