|
|
@ -94,6 +94,7 @@ class Game(db.Model): |
|
|
|
return locations |
|
|
|
return locations |
|
|
|
|
|
|
|
|
|
|
|
def owned_by(self, player): |
|
|
|
def owned_by(self, player): |
|
|
|
|
|
|
|
# pylint: disable=not-an-iterable |
|
|
|
'''given player is an owner of game''' |
|
|
|
'''given player is an owner of game''' |
|
|
|
return player in [gameplayer.player for gameplayer in self.game_players if gameplayer.role == Role.owner] |
|
|
|
return player in [gameplayer.player for gameplayer in self.game_players if gameplayer.role == Role.owner] |
|
|
|
|
|
|
|
|
|
|
|