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

Fixed logic in gps time search.

Zero != None.  Now taking that into account.
Yes, it's a silly edge case, but if you enter zero
as a time, you should only get events with gps times, no?
parent 52a38f82
No related branches found
No related tags found
No related merge requests found
......@@ -229,13 +229,13 @@ def search(request):
objects = objects.filter(id__lte=int(end[1:]))
objects = objects.filter(uid="")
if gpsStart or gpsEnd:
if gpsStart and (gpsStart == gpsEnd):
if gpsStart != None or gpsEnd != None :
if gpsStart == gpsEnd:
objects = objects.filter(gpstime=gpsStart)
else:
if gpsStart:
if gpsStart != None:
objects = objects.filter(gpstime__gte=gpsStart)
if gpsEnd:
if gpsEnd != None:
objects = objects.filter(gpstime__lte=gpsEnd)
if submitter:
......
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