Browse Source

update to only show 24 entries

master
Cailean Finn 4 days ago
parent
commit
e1b68e644f
  1. 19
      app.py
  2. BIN
      public/images/locations.zip
  3. BIN
      public/images/support.zip

19
app.py

@ -86,7 +86,20 @@ def process_content(entries, type):
content_list = []
exh_type = None
for entry in entries:
# Clear arrays
try:
if hasattr(entry, 'beta25'):
if entry.beta25 == "False":
print("false")
pass
else:
continue
else:
print("n/a")
pass
except AttributeError:
# Field is not present, so we process the entry.
pass
times = []
dates = []
if type == 'event':
@ -128,8 +141,8 @@ def process_content(entries, type):
'exh_type': exh_type
}
content_list.append(content)
print(content)
print("\n")
#print(content)
#print("\n")
# Sort the content list by the 'title' key alphabetically
content_list.sort(key=lambda x: x['title'].lower())

BIN
public/images/locations.zip

Binary file not shown.

BIN
public/images/support.zip

Binary file not shown.
Loading…
Cancel
Save