@property
    def rows(self):
        rows = []
        if self.location_id and self.locations:
            for location_name, values in self.config['summary_reporting_rates'].iteritems():
                url = make_url(
                    ReportingRatesReport,
                    self.config['domain'],
                    '?location_id=%s&startdate=%s&enddate=%s',
                    (values['location_id'], self.config['startdate'].strftime('%Y-%m-%d'),
                     self.config['enddate'].strftime('%Y-%m-%d'))
                )
                is_rendered_as_email = self.config['is_rendered_as_email']
                rows.append(
                    [
                        link_format(location_name, url) if not is_rendered_as_email else location_name,
                        values['all'],
                        values['complete'] + values['incomplete'],
                        '%d%%' % (100 * (values['complete'] + values['incomplete']) / (values['all'] or 1)),
                        '%d%%' % (100 * values['complete'] / ((values['complete'] + values['incomplete']) or 1))
                    ]
                )
        return rows
dataset/ETHPy150Open dimagi/commcare-hq/custom/ewsghana/reports/specific_reports/reporting_rates.py/SummaryReportingRates.rows/original