Skip to content

Commit

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

# Process image if present
if stale_data:
pass

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

elif p["Thumbnail"]["files"]:
file_name = p["Thumbnail"]["files"][0]["name"]
file_url = (
Expand Down

0 comments on commit f2b3663

Please sign in to comment.