From 5392e08ea239575c3c2c8c8c900a8c0372de09b9 Mon Sep 17 00:00:00 2001 From: red binder Date: Mon, 6 Apr 2026 22:09:38 +0200 Subject: [PATCH 1/2] Temporary debugging --- rnex-core/src/nex/user.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rnex-core/src/nex/user.rs b/rnex-core/src/nex/user.rs index 2e63b98..f16e813 100644 --- a/rnex-core/src/nex/user.rs +++ b/rnex-core/src/nex/user.rs @@ -659,6 +659,12 @@ impl Ranking for User { }; let team_votes = fetch_team_votes(fest_id)?; + let mut wins = vec![0u32, 0u32]; + for r in &results { + if r.team_win == 1 && (r.team_id == 0 || r.team_id == 1) { + wins[r.team_id as usize] += 1; + } + } let score_data: Vec = results .iter() @@ -672,11 +678,16 @@ impl Ranking for User { }) .collect(); + println!("Fest id: {:?}", fest_id); + println!("Score data: {:?}", score_data); + println!("Wins: {:?}", wins); + println!("Votes: {:?}", team_votes); + let info = CompetitionRankingScoreInfo { fest_id, score_data, unk: 0, - team_wins: results.iter().map(|r| r.team_win as u32).collect(), + team_wins: wins, team_votes, }; -- 2.47.3 From 26fc8cb077a6f648ffb943f7b59a4e6a1af6486f Mon Sep 17 00:00:00 2001 From: red binder Date: Mon, 6 Apr 2026 22:34:40 +0200 Subject: [PATCH 2/2] Remove debugging statements --- rnex-core/src/nex/user.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rnex-core/src/nex/user.rs b/rnex-core/src/nex/user.rs index f16e813..c86ae73 100644 --- a/rnex-core/src/nex/user.rs +++ b/rnex-core/src/nex/user.rs @@ -677,11 +677,6 @@ impl Ranking for User { appdata: QBuffer(vec![]), }) .collect(); - - println!("Fest id: {:?}", fest_id); - println!("Score data: {:?}", score_data); - println!("Wins: {:?}", wins); - println!("Votes: {:?}", team_votes); let info = CompetitionRankingScoreInfo { fest_id, -- 2.47.3