diff --git a/operators/entities/__init__.py b/operators/entities/__init__.py index 45a2ae0..7e476d9 100644 --- a/operators/entities/__init__.py +++ b/operators/entities/__init__.py @@ -276,8 +276,8 @@ def func(rows: ResourceWrapper): regNum = row['id'] branches = ga.branches(regNum) - # if len(branches) == 0: - # continue + if len(branches) == 0: + continue services = ga.services(regNum) govServices = dict( (s['relatedMalkarService'], s) for s in services if s.get('serviceGovName') is not None and s.get('relatedMalkarService') is not None @@ -436,7 +436,8 @@ def func(rows): if national: row['branches'].append(f'guidestar:{orgId}:national') if len(row['branches']) == 0: - row['organizations'] = [orgId] + stats.increase('Guidestar: Service with no branches') + continue when = data.pop('whenServiceActive') if when == 'All Year':