Browse Source

removed print

main
Cailean Finn 7 months ago
parent
commit
735fc72e72
  1. 1
      app.py
  2. 21
      templates/newsletter.html

1
app.py

@ -102,7 +102,6 @@ class WikiApp(Flask):
def fetch_events(self, pub_date, future_date):
all_events = self.fetch_all_events(pub_date, future_date)
print(all_events)
if not all_events:
return {}
else:

21
templates/newsletter.html

@ -10,7 +10,26 @@
<div class='event-cont'>
{% for key, value in events.items() %}
<hr>
<h2 class='event-heading'>Spotlight 🔦</h2>
<h2 class='event-heading'>Spotlight</h2>
<hr>
<div class='list-events'>
{% for data in value %}
<div class='event'>
<h4 class='event-name'><b>{{ data.name }}</b></h4>
<p class='event-org'><b>Organiser/s: </b>{{ data.org }}</p>
<p class='event-location'><b>Location: </b>{{ data.location }}</p>
<p class='event-deadline'><b>Date: </b>{{ data.deadline }} &#8594; {{ data.endDate}}</p>
<p class='event-text'>{{ data.text }}</p>
<a href={{ data.source }} target='_blank'><p class='event-link'><b>Link ↗</b></p></a>
</div>
<p>&#8203;</p>
{% endfor %}
</div>
{% endfor %}
{% for key, value in events.items() %}
<hr>
<h2 class='event-heading'>Events</h2>
<hr>
<div class='list-events'>
{% for data in value %}

Loading…
Cancel
Save