Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't serialize team if it is None #809

Merged
merged 3 commits into from
Jul 24, 2021
Merged

Conversation

Sheikah45
Copy link
Member

Fixes #808

@Sheikah45 Sheikah45 requested a review from Askaholic July 22, 2021 23:52
@codecov
Copy link

codecov bot commented Jul 22, 2021

Codecov Report

Merging #809 (bf39cbe) into develop (c4ce9b3) will not change coverage.
The diff coverage is n/a.

Impacted Files Coverage Δ
server/games/game.py 95.65% <ø> (ø)

server/games/game.py Outdated Show resolved Hide resolved
@Sheikah45 Sheikah45 requested a review from Askaholic July 23, 2021 00:30
@@ -908,7 +908,7 @@ def to_dict(self):
player.login for player in self.players
if self.get_player_option(player.id, "Team") == team
]
for team in self.teams
for team in self.teams if team is None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad is not None :P

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I should have realized ha

@Askaholic Askaholic merged commit 9309355 into develop Jul 24, 2021
@Askaholic Askaholic deleted the bugfix/#808-null-team branch July 24, 2021 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

String "null" sent as team in game_info
2 participants