mysociety / za-hansard

A parser for South African Hansards, as published at http://www.parliament.gov.za/live/content.php?Category_ID=119
Other
2 stars 3 forks source link

Make sure no SayIt Speaker is associated with a blacklisted PopIt IDs #69

Open mhl opened 8 years ago

mhl commented 8 years ago

Even if a PopIt ID was blacklisted, a speech might still end up being associated with that person because there would still be a Speaker object with the exact name that's being resolved which has its person attribute set to a Person with the blacklisted PopIt ID.

This commit makes sure that any Speaker with a person attribute with a blacklisted PopIt ID has that person attribute set to None when the ImportJson object is initialized.

Fixes #1740