|
|
@ -145,6 +145,7 @@ class Player(UserMixin, db.Model): |
|
|
|
return check_password_hash(self.password_hash, password) |
|
|
|
return check_password_hash(self.password_hash, password) |
|
|
|
|
|
|
|
|
|
|
|
def last_location(self, game=None): |
|
|
|
def last_location(self, game=None): |
|
|
|
|
|
|
|
# pylint: disable=not-an-iterable |
|
|
|
if not self.locations: |
|
|
|
if not self.locations: |
|
|
|
return None |
|
|
|
return None |
|
|
|
if game is None: |
|
|
|
if game is None: |
|
|
|