File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ def get_games_analysis(
241241 Returns:
242242 Dict with statistical analysis of the games provided.
243243 """
244- names = {n .strip () for n in username .split ("||" )}
244+ names = {n .strip (). lower () for n in username .split ("||" )}
245245 total = len (pgn_games )
246246 wins = losses = draws = 0
247247 opp_mapping : list [tuple [int , int | None ]] = []
@@ -254,8 +254,8 @@ def get_games_analysis(
254254 if eco_code := tags .get ("ECO" , None ):
255255 opening_mapper .append ((eco_code , " " .join ([str (move ) for move in g .moves ])))
256256
257- is_white = white in names
258- is_black = black in names
257+ is_white = white . lower () in names
258+ is_black = black . lower () in names
259259
260260 # win/loss/draw
261261 if result == constants .DRAW :
You can’t perform that action at this time.
0 commit comments