Fixed previous fix

This commit is contained in:
Jonas_Jones 2023-12-16 03:46:51 +01:00
parent fec4439d4a
commit 0b5edb5b3a

View file

@ -182,7 +182,7 @@ def convert_monthly_content_to_json(content, year, month):
parts[0] = parts[0].replace('th', '').replace('st', '').replace('nd', '').replace('rd', '') parts[0] = parts[0].replace('th', '').replace('st', '').replace('nd', '').replace('rd', '')
# make the links an empty list if it's null # make the links an empty list if it's null
if parts[5] == None: if parts[5] == [None]:
parts[5] = [] parts[5] = []
# create a json entry from the parsed data # create a json entry from the parsed data