Skip to content

Commit

Permalink
bugfix to the bugfix to the bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Highfire1 committed Dec 3, 2024
1 parent f2b3663 commit 757cee0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/fetch_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def updateDataFromNotion(writeLocation="data/") -> bool:

# if data is stale then don't redownload the image
if p["Thumbnail"]["files"] and stale_data:
file_name = p["Thumbnail"]["files"][0]["name"]
file_extension = file_name.split(".")[-1].lower()
event_images[page_id] = image_filename_to_url("events/images", f"{page_id}.{file_extension}")

elif p["Thumbnail"]["files"]:
Expand Down

0 comments on commit 757cee0

Please sign in to comment.