Browse Source

filter None results from game.last_locations()

testing
Burathar 5 years ago
parent
commit
8776302c2a
  1. 4
      app/models/game.py

4
app/models/game.py

@ -37,7 +37,9 @@ class Game(db.Model):
for player in players: for player in players:
if isinstance(player, GamePlayer): if isinstance(player, GamePlayer):
player = player.user player = player.user
locations.append(player.last_location(self)) location = player.last_location(self)
if location:
locations.append(location)
return locations return locations
def bunnies(self): def bunnies(self):

Loading…
Cancel
Save