소스 검색

[boardgames] Fix small bug in black username

Colin Powell 5 달 전
부모
커밋
855f59b83f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      vrobbler/apps/boardgames/sources/lichess.py

+ 1 - 1
vrobbler/apps/boardgames/sources/lichess.py

@@ -83,7 +83,7 @@ def import_chess_games_for_all_users():
                         black_player.get("aiLevel", "")
                     )
                 else:
-                    other_player["name_str"] = white_player.get(
+                    other_player["name_str"] = black_player.get(
                         "user", {}
                     ).get("name", "")
                 other_player["color"] = "black"