Permalink
Browse files

update views

  • Loading branch information...
1 parent 080fb1e commit 5462780653aa3aacbafd41af88a96efc4c000955 Davy-jones-Giant-squid committed Jul 10, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 scrape_crime/views.py
View
@@ -20,11 +20,8 @@ def heatmap(request):
#{'location__longitude': -87.647133449272189, 'location__latitude': 41.935362071404619},
#{'location__longitude': -87.723676565062746, 'location__latitude': 41.814207227378269}]
- start = datetime.datetime.now()
list_obj = [[i['location__latitude'], i['location__longitude']] for i in objs]
#looping through a list is faster than hitting the database at every loop
- end = datetime.datetime.now()
- print end - start
cxt = {'obj': list_obj}
return render_to_response('heatmap.html', cxt)

0 comments on commit 5462780

Please sign in to comment.