@property
    def rows(self):
        if self.config in 'data_config':
            data_config = self.config['data_config']
            submitted_on_time = data_config.rr_data_total.get(('on_time', 'submitted'), 0)
            not_submitted_on_time = data_config.rr_data_total.get(('on_time', 'not_submitted'), 0)
            submitted_late = data_config.rr_data_total.get(('late', 'submitted'), 0)
            not_submitted_late = data_config.rr_data_total.get(('late', 'not_submitted'), 0)
            return[GroupSummary(
                title=SupplyPointStatusTypes.R_AND_R_FACILITY,
                responded=submitted_on_time + not_submitted_on_time + submitted_late + not_submitted_late,
                on_time=submitted_on_time,
                complete=submitted_on_time + submitted_late,
                total=data_config.rr_data_total.get('total', 0)
            )]
        if self.config['org_summary']:
            rr = GroupSummary.objects.filter(
                title=SupplyPointStatusTypes.R_AND_R_FACILITY,
                org_summary__in=self.config['org_summary']
            ).aggregate(Avg('responded'), Avg('on_time'), Avg('complete'), Max('total'))

            return [GroupSummary(
                title=SupplyPointStatusTypes.R_AND_R_FACILITY,
                responded=rr['responded__avg'],
                on_time=rr['on_time__avg'],
                complete=rr['complete__avg'],
                total=rr['total__max']
            )]
        return [GroupSummary(
            title=SupplyPointStatusTypes.R_AND_R_FACILITY,
            responded=0,
            on_time=0,
            complete=0,
            total=0
        )]
dataset/ETHPy150Open dimagi/commcare-hq/custom/ilsgateway/tanzania/reports/mixins.py/RandRSubmissionData.rows/swapped operands of `in`