Update some other minor parts

This commit is contained in:
Lol3rrr
2024-09-30 18:28:42 +02:00
parent de37b239aa
commit ae85177697
5 changed files with 53 additions and 36 deletions

View File

@@ -133,9 +133,17 @@ pub fn analyse_heatmap(input: AnalysisInput) -> std::collections::HashMap<String
};
let result = analysis::heatmap::parse(&config, &mmap).unwrap();
tracing::info!("Got {} Heatmaps", result.player_heatmaps.len());
result.player_heatmaps.into_iter().filter_map(|(userid, heatmap)| {
let player = match result.player_info.get(&userid) {
tracing::info!("Got {} Entity-Heatmaps", result.player_heatmaps.len());
result.player_heatmaps.into_iter().filter_map(|(entity_id, heatmap)| {
let userid = match result.entity_to_player.get(&entity_id) {
Some(u) => u,
None => {
tracing::warn!("Could not find User for Entity: {:?}", entity_id);
return None;
}
};
let player = match result.player_info.get(userid) {
Some(p) => p,
None => {
tracing::warn!("Could not find player: {:?}", userid);