From 2195e7324dea644800ab9719d31c04b243e744f9 Mon Sep 17 00:00:00 2001 From: julius Date: Thu, 22 May 2025 12:33:28 +0200 Subject: [PATCH] feat: exclude players from analysis that aren't in the team --- cutt/analysis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cutt/analysis.py b/cutt/analysis.py index b38bc35..7266e34 100644 --- a/cutt/analysis.py +++ b/cutt/analysis.py @@ -153,6 +153,8 @@ def graph_json( ) for c in session.exec(statement2): + if c.user not in player_map: + continue user = player_map[c.user] for i, p_id in enumerate(c.love): if p_id not in player_map: