Exemple #1
0
 def total_for_district(self, form):
     loc = get_location_by_type(form=form, type=u'district')
     count = Location.filter_by_type_count(form.domain, 'PPS', loc)
     yield {
         'date': form_date(form),
         'value': count
     }
Exemple #2
0
 def total_for_district(self, form):
     loc = get_location_by_type(form=form, type=u'district')
     count = Location.filter_by_type_count(form.domain, 'PPS', loc)
     yield {
         'date': form_date(form),
         'value': count
     }
 def total_for_region(self, form):
     loc = get_location_by_type(form=form, type=u'r\xe9gion')
     count = _locations_per_type(form.domain, 'PPS', loc)
     yield {
         'date': form_date(form),
         'value': count
     }
Exemple #4
0
 def total_for_region(self, form):
     loc = get_location_by_type(form=form, type=u'r\xe9gion')
     count = _locations_per_type(form.domain, 'PPS', loc)
     yield {
         'date': form_date(form),
         'value': count
     }