Skip to content

Commit 28be5a7

Browse files
committed
Add special case for bad GPO 112nd data: Curzon, David Alan is really Curson. For issue #1.
1 parent af0076b commit 28be5a7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

congress/original/C001089.jpg

344 KB
Loading

scripts/gpo_member_photos.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,11 @@ def resolve(data, text):
163163
if isinstance(text, str):
164164
text = text.decode('utf-8')
165165

166-
# Special cases hardcoded
167-
# Really "Byrne, Bradley" but GPO has bad data
168-
if text == "Bradley, Byrne":
166+
# hardcoded special cases to deal with bad data in GPO
167+
if text == "Bradley, Byrne": # Really "Byrne, Bradley"
169168
return "B001289"
169+
elif text == "Curzon, David Alan": # Really "Curzon, David Alan"
170+
return "C001089"
170171

171172
for item in data:
172173
bioguide = item['id']['bioguide']

0 commit comments

Comments
 (0)