|
@ -86,7 +86,20 @@ def process_content(entries, type): |
|
|
content_list = [] |
|
|
content_list = [] |
|
|
exh_type = None |
|
|
exh_type = None |
|
|
for entry in entries: |
|
|
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 = [] |
|
|
times = [] |
|
|
dates = [] |
|
|
dates = [] |
|
|
if type == 'event': |
|
|
if type == 'event': |
|
@ -128,8 +141,8 @@ def process_content(entries, type): |
|
|
'exh_type': exh_type |
|
|
'exh_type': exh_type |
|
|
} |
|
|
} |
|
|
content_list.append(content) |
|
|
content_list.append(content) |
|
|
print(content) |
|
|
#print(content) |
|
|
print("\n") |
|
|
#print("\n") |
|
|
# Sort the content list by the 'title' key alphabetically |
|
|
# Sort the content list by the 'title' key alphabetically |
|
|
content_list.sort(key=lambda x: x['title'].lower()) |
|
|
content_list.sort(key=lambda x: x['title'].lower()) |
|
|
|
|
|
|
|
|