Skip to content

Commit

Permalink
Merge pull request #754 from sticks-stuff/bug/broken-losers-arg
Browse files Browse the repository at this point in the history
Fix broken losers argument in set API due to incorrect conversion from string to bool
  • Loading branch information
joaorb64 authored Aug 27, 2024
2 parents 964d4ad + 27f4ddc commit 1416c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TSHWebServerActions.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def set_route(self,
if losers is not None:
self.scoreboard.GetScoreboard(scoreboard).signals.ChangeSetData.emit(
orjson.loads(
orjson.dumps({'team' + str(team) + 'losers': bool(losers)})
orjson.dumps({'team' + str(team) + 'losers': False if losers.lower() == 'false' else True})
)
)
return "OK"
Expand Down

0 comments on commit 1416c66

Please sign in to comment.