@property
    def rows(self):
        data = DeliverySubmissionData(config=self.config, css_class='row_chart_all').rows

        if data:
            dg = data[0]
            percent_format = lambda x, y: x * 100 / (y or 1)

            return [
                [_('Didn\'t Respond'), '%d' % dg.not_responding,
                 '%.1f%%' % percent_format(dg.not_responding, dg.total)],
                [_('Not Received'), '%d' % dg.not_received, '%.1f%%' % percent_format(dg.not_received, dg.total)],
                [_('Received'), '%d' % dg.received, '%.1f%%' % percent_format(dg.received, dg.total)],
                [_('Total'), '%d' % dg.total, '100%'],
            ]
dataset/ETHPy150Open dimagi/commcare-hq/custom/ilsgateway/tanzania/reports/delivery.py/DeliveryData.rows/original