diff --git a/sync_dota2_matches.py b/sync_dota2_matches.py index 40f6923..8db49a3 100644 --- a/sync_dota2_matches.py +++ b/sync_dota2_matches.py @@ -317,7 +317,16 @@ class Dota2CalendarSync: score2 = int(score_parts.group(2)) # Check if series is completed - completed = self._is_series_completed(score1, score2, format_str) + # Only mark as completed if the match has already started + now = datetime.now(pytz.UTC) + match_has_started = match_datetime <= now + + if match_has_started: + completed = self._is_series_completed(score1, score2, format_str) + else: + # Future match with score - likely a placeholder/prediction + completed = False + logger.debug(f"Future match {team1} vs {team2} has score {score} but not marking as completed") if completed: winner = team1 if score1 > score2 else team2