Skip to content

Commit

Permalink
Merge pull request #773 from vigneshhari/master
Browse files Browse the repository at this point in the history
Fixed Bug in Taluk Filtering
  • Loading branch information
vigneshhari authored Aug 20, 2018
2 parents cf37f83 + 31261f4 commit 662a35e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mainapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ def dmotal(request):
d = []
for taluk in data :
camps = 0 ;total_people = 0 ;total_male = 0 ; total_female = 0 ; total_infant = 0 ; total_medical = 0;district = ""
for i in RescueCamp.objects.all().filter(taluk = taluk["taluk"]):
if(dist == "all"):RCdata = RescueCamp.objects.all().filter( taluk = taluk["taluk"])
else:RCdata = RescueCamp.objects.all().filter( district = dist , taluk = taluk["taluk"])
for i in RCdata:
camps+=1
district = i.district
total_people += ifnonezero(i.total_people)
Expand Down

0 comments on commit 662a35e

Please sign in to comment.