When a person gets merged on Wikidata they effectively disappear from EveryPolitician, but we still have them cached in the country_uuids table. This change checks for any people that have been removed and deletes the associated votes and country_uuids tables.
When a person gets merged on Wikidata they effectively disappear from EveryPolitician, but we still have them cached in the
country_uuids
table. This change checks for any people that have been removed and deletes the associatedvotes
andcountry_uuids
tables.Fixes https://github.com/everypolitician/gender-balance/issues/336