Browse Source

add pylint ignore comment

testing
Burathar 4 years ago
parent
commit
3ac8ea660a
  1. 1
      app/models.py

1
app/models.py

@ -94,6 +94,7 @@ class Game(db.Model): @@ -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]

Loading…
Cancel
Save