Fix fixtures API: remove non-existent odds attributes from MatchModel

parent 38946b0d
......@@ -10823,13 +10823,7 @@ def get_overlay_fixtures():
'status': match.status,
'start_time': match.start_time.isoformat() if match.start_time else None,
'result': match.result,
'outcomes': outcomes_array, # Array format expected by template
# Keep odds for backwards compatibility
'odds': {
'fighter1': float(match.odds_fighter1) if match.odds_fighter1 else 1.0,
'fighter2': float(match.odds_fighter2) if match.odds_fighter2 else 1.0,
'draw': float(match.odds_draw) if match.odds_draw else 3.0
}
'outcomes': outcomes_array # Array format expected by template
}
fixtures_data.append(match_data)
logger.info(f"[FIXTURES API] Successfully processed match {match.id}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment