Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tigaserver_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,7 @@ def save(self, *args, **kwargs):
if _old_point != self.point:
_last_location_update = self.user.last_location_update
_report_upload_time = self.server_upload_time or timezone.now()
if _last_location_update and _report_upload_time >= _last_location_update:
if _last_location_update is None or (_last_location_update and _report_upload_time >= _last_location_update):
self.user.last_location = self.point
self.user.last_location_update = _report_upload_time
self.user.save()
Expand Down