Skip to content

Commit 9834a1d

Browse files
committed
replace parse_datetime with parse_utc_datetime, use instaloader wheel with increased request timeout
1 parent 23fa894 commit 9834a1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/scraping/instagram_feed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ def insert_event_to_db(event_data, ig_handle, source_url):
271271
event_dates = []
272272

273273
for occ in occurrences:
274-
dtstart_utc = parse_datetime(occ.get("dtstart_utc"))
274+
dtstart_utc = parse_utc_datetime(occ.get("dtstart_utc"))
275275
dtend_utc_raw = occ.get("dtend_utc")
276-
dtend_utc = parse_datetime(dtend_utc_raw) if dtend_utc_raw and dtend_utc_raw.strip() else None
276+
dtend_utc = parse_utc_datetime(dtend_utc_raw) if dtend_utc_raw and dtend_utc_raw.strip() else None
277277

278278
event_dates.append(
279279
EventDates(
172 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)