Skip to content

Commit ec57c72

Browse files
committed
Reject certain Guidestar tags
1 parent c55bc71 commit ec57c72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operators/entities/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ def operator(name, params, pipeline):
583583
# DF.printer(),
584584
DF.select_fields(['name', 'Status', 'situation_ids', 'response_ids']),
585585
).results()[0][0]
586-
rejected_taxonomies = [x['name'] for x in taxonomy if x['Status'] == 'REJECTED']
586+
rejected_taxonomies = [x['name'] for x in taxonomy if 'REJECTED' == x.get('Status')]
587+
print('REJECTED TAXONOMIES', rejected_taxonomies)
587588
taxonomy = dict(
588589
(r.pop('name'), r) for r in taxonomy
589590
if r['name'] not in rejected_taxonomies

0 commit comments

Comments
 (0)