Skip to content

Commit

Permalink
Check for position
Browse files Browse the repository at this point in the history
  • Loading branch information
gannetson committed Sep 14, 2022
1 parent 0631ad1 commit caf3b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluebottle/activities/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def get_matching_properties(self, obj):

if obj.is_online:
matching['location'] = True
elif self.context['location']:
elif self.context['location'] and obj.position:
positions = [obj.position] if 'lat' in obj.position else obj.position

dist = min(
Expand Down

0 comments on commit caf3b4a

Please sign in to comment.