Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit 0338483

Browse files
committed
startteam is a team
1 parent a9810e7 commit 0338483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sc_client/game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, room_id, setup, calculate_move, on_result, connection):
3333
def update(self, element):
3434
if element.get('class') == 'memento':
3535
self.turn = int(element.find('state').get('turn'))
36-
self.start_team = element.find('state/startTeam').text
36+
self.start_team = Team[element.find('state/startTeam').text]
3737
self.pieces = [Piece.from_xml(entry, self) for entry in element.findall(
3838
'state/board/pieces/entry')]
3939

0 commit comments

Comments
 (0)