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