Permalink
Browse files

fixing bugs in lte/gte in points search

  • Loading branch information...
1 parent 4f06b7c commit ddfd30b3703c016abaa9f5f27f25165dedf21064 @andrewsmedina andrewsmedina committed Aug 15, 2010
Showing with 6 additions and 4 deletions.
  1. +6 −4 wifimap/spots/views.py
View
@@ -47,15 +47,17 @@ def search_spots(request):
points = AccessPoint.objects.all()
if request.GET.has_key('place'):
+
+ #import pdb; pdb.set_trace()
south = request.GET['south']
north = request.GET['north']
west = request.GET['west']
east = request.GET['east']
- points = points.filter(lat__gte=north)
- points = points.filter(lat__lte=south)
- points = points.filter(lng__gte=east)
- points = points.filter(lng__lte=west)
+ points = points.filter(lat__lte=north)
+ points = points.filter(lat__gte=south)
+ points = points.filter(lng__lte=east)
+ points = points.filter(lng__gte=west)
geo_data = geocode(request.GET['place'])

0 comments on commit ddfd30b

Please sign in to comment.