Skip to content

Commit a883b11

Browse files
authored
Merge pull request #55 from cuappdev/claire/basketballScoreBreakdown
Fix date comparison to use datetime object instead of ISO 8601 string
2 parents 720feed + 85eac9d commit a883b11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scrapers/daily_sun_scrape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def fetch_news():
3636
published_at_dt = published_at_dt.replace(tzinfo=timezone.utc)
3737
published_at = published_at_dt.isoformat().replace('+00:00', 'Z')
3838

39-
if published_at >= three_days_ago:
39+
if published_at_dt >= three_days_ago:
4040
# Extract sport type from title
4141
title = article["headline"]
4242
sports_type = extract_sport_type_from_title(title)

0 commit comments

Comments
 (0)