opencivicdata / scrapers-us-municipal

Scrapers for US municipal governments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chicago: eventparticipants are not resolving due to trailing whitespace

derekeder opened this issue · comments

There are about 2,700 eventparticipants that do not resolve their OCD IDs due to trailing whitespace: https://puddle.bunkum.us/chicago_council-2c401e3/eventparticipant?_sort=id&entity_type__exact=person&person_id__isnull=1

Ran this update query locally to apply the trim. This caught all of them except for "Cochran, Willie"

update opencivicdata_eventparticipant set person_id = opencivicdata_person.id 
from opencivicdata_person 
where opencivicdata_person.name = trim(opencivicdata_eventparticipant.name) 
and person_id is null 
and entity_type = 'person';

closed via e2ec285