Compare commits
No commits in common. "e7044e21e9c05039602bfda82f9f0c9857675973" and "ce14f2676e802d202b40f66a7430f7f050acd8c4" have entirely different histories.
e7044e21e9
...
ce14f2676e
1 changed files with 1 additions and 7 deletions
|
|
@ -669,12 +669,6 @@ impl Ranking for User {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let offset = param.range.offset as usize;
|
|
||||||
let size = param.range.size as usize;
|
|
||||||
|
|
||||||
let start = offset.min(results.len());
|
|
||||||
let end = (start + size).min(results.len());
|
|
||||||
|
|
||||||
let team_votes = fetch_team_votes(fest_id)?;
|
let team_votes = fetch_team_votes(fest_id)?;
|
||||||
let mut wins = vec![0u32, 0u32];
|
let mut wins = vec![0u32, 0u32];
|
||||||
for r in &results {
|
for r in &results {
|
||||||
|
|
@ -684,7 +678,7 @@ impl Ranking for User {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
let score_data: Vec<CompetitionRankingScoreData> = results[start..end]
|
let score_data: Vec<CompetitionRankingScoreData> = results
|
||||||
.iter()
|
.iter()
|
||||||
.map(|r| CompetitionRankingScoreData {
|
.map(|r| CompetitionRankingScoreData {
|
||||||
unk: 1,
|
unk: 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue