fix position timeout
This commit is contained in:
parent
9b7092d057
commit
1a8cf4ed5c
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ class Position(CustomLocationProxyMixin, models.Model):
|
|||
if self.timeout and self.last_coordinates_update:
|
||||
end_time = self.last_coordinates_update + timedelta(seconds=self.timeout)
|
||||
if timezone.now() >= end_time:
|
||||
self.cordinates = None
|
||||
self.coordinates = None
|
||||
self.last_coordinates_update = end_time
|
||||
|
||||
def get_custom_location(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue