コード例 #1
0
ファイル: report_calcs.py プロジェクト: xbryanc/commcare-hq
 def total_for_district(self, form):
     loc = get_location_by_type(form=form, type=u'district')
     count = _locations_per_type(form.domain, 'PPS', loc)
     yield {
         'date': form_date(form),
         'value': count
     }
コード例 #2
0
 def total_for_district(self, form):
     loc = get_location_by_type(form=form, type=u'district')
     count = _locations_per_type(form.domain, 'PPS', loc)
     yield {
         'date': form_date(form),
         'value': count
     }
コード例 #3
0
ファイル: report_calcs.py プロジェクト: xbryanc/commcare-hq
 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
     }
コード例 #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
     }