logger.info(f"DEBUG _update_bet_results: Found {len(extraction_winning_outcomes)} winning outcomes from extraction associations for '{selected_result}': {extraction_winning_outcome_names}")
# extraction_winning_outcome_names is already passed as parameter
logger.info(f"DEBUG _update_bet_results: Using passed extraction_winning_outcome_names: {extraction_winning_outcome_names}")
logger.info(f"DEBUG: Found {len(bets)} bets in database for date {date_param}")
forbetinbets:
logger.info(f"DEBUG: Bet {bet.uuid} has datetime: {bet.bet_datetime} (type: {type(bet.bet_datetime)}, tz: {bet.bet_datetime.tzinfo if hasattr(bet.bet_datetime, 'tzinfo') else 'naive'})")
logger.info(f"Found {len(bets)} bets in database for date {date_param}")
bets_data=[]
# Statistics counters
...
...
@@ -4357,12 +4349,28 @@ def get_cashier_bets():
bet_data['total_amount']=bet_total
total_amount+=bet_total
# Determine overall bet status for statistics
# Determine overall bet status for statistics using same logic as bet details page