def merge_logs(bet_logs, bet_results_logs):
    """Merges bet logs (LogBet) with bet results logs (LogResult)."""
    merged_logs = ()
    bet_results_dict = {}
    for bet_result in bet_results_logs:
        bet_id = bet_result['bet_id']
        bet_results_dict = dict(bet_results_dict, **{bet_id: bet_result})
    for bet_log in bet_logs:
        bet_id = bet_log['bet_id']
        bet_result = bet_results_dict.get(bet_id)
        merged_log = {'bet_log': bet_log, 'bet_result': bet_result}
        merged_logs += merged_log,
    return merged_logs
