|
|
@ -32,7 +32,9 @@ class Game(db.Model): |
|
|
|
|
|
|
|
|
|
|
|
def last_player_locations(self, offset=None): |
|
|
|
def last_player_locations(self, offset=None): |
|
|
|
# pylint: disable=not-an-iterable |
|
|
|
# pylint: disable=not-an-iterable |
|
|
|
return [player.last_location(offset=offset) for player in self.players if player.user.locations] |
|
|
|
return [location for location in |
|
|
|
|
|
|
|
[player.last_location(offset=offset) for player in self.players if player.user.locations] |
|
|
|
|
|
|
|
if location is not None] |
|
|
|
|
|
|
|
|
|
|
|
def last_locations(self, players, offset=None): |
|
|
|
def last_locations(self, players, offset=None): |
|
|
|
''' |
|
|
|
''' |
|
|
|