We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0010b91 commit c3e3c45Copy full SHA for c3e3c45
sc2reader/plugins/replay.py
@@ -46,7 +46,7 @@ def toDict(replay):
46
})
47
players.append({
48
'avg_apm': getattr(player, 'avg_apm', None),
49
- 'color': getattr(player, 'color', None),
+ 'color': player.color.__dict__ if hasattr(player, 'color') else None,
50
'name': getattr(player, 'name', None),
51
'pick_race': getattr(player, 'pick_race', None),
52
'pid': getattr(player, 'pid', None),
0 commit comments