Skip to content
Snippets Groups Projects
Commit 2cb0109a authored by Brian Moe's avatar Brian Moe
Browse files

Error in calculating neighbors of Test event

parent adb7eaf4
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ class Event(models.Model):
if not self.gpstime:
return []
if self.group.name == 'Test':
nearby = Event.objects.filter(group='Test')
nearby = Event.objects.filter(group__name='Test')
else:
nearby = Event.objects.exclude(group__name='Test')
nearby = nearby.filter(gpstime__range=(self.gpstime-delta, self.gpstime+delta))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment