DemocracyClub / aggregator-api

https://developers.democracyclub.org.uk/
3 stars 3 forks source link

Show "NO_CHANGE" response if number of addresses changed is zero #540

Closed symroe closed 4 months ago

symroe commented 4 months ago

Previously we were checking for the boolean value of the look up. If the tuple was found, but the addresses changed were zero that zero would evaluate to False.

This change checks for None rather than bool(value).