@property
    def rows(self):
        if self.config['location_id']:
            selected_location = SQLLocation.objects.get(
                location_id=self.config['location_id']
            )
            awcs = selected_location.get_descendants(include_self=True).filter(
                location_type__name='awc'
            )
            awc_number = [
                loc for loc in awcs
                if 'test' not in loc.metadata and loc.metadata.get('test', '').lower() != 'yes'
            ]
            key = selected_location.location_type.name.lower() + '_id'

            data = self.custom_data(
                domain=self.config['domain'],
                filters={
                    key: [Choice(value=selected_location.location_id, display=selected_location.name)],
                }
            )
            return [
                [
                    'No. of AWCs',
                    len(awc_number),
                    0,
                    data['owner_id']
                ],
                [
                    'No. of Mini AWCs',
                    0,
                    0,
                    0
                ]
            ]
dataset/ETHPy150Open dimagi/commcare-hq/custom/icds_reports/sqldata.py/Operationalization.rows/original