This addresses an issue with how we show term_ended_early and term_started_late. For legislators who were in Congress for the 115th session and not the 116th (or vice versa), there is a problem of ambiguity about which term these caveats are describing.
This changes the singular term property to an array of terms, where each term object has its own term_ended_early and term_started_late caveats.
NOTE this is branched from the
python3
branch, only this commit is unique to the PR: https://github.com/aclu-national/elections-api/pull/34/commits/149a81dd2ff32927b37ae3bdf3940baf9f702b65This addresses an issue with how we show
term_ended_early
andterm_started_late
. For legislators who were in Congress for the 115th session and not the 116th (or vice versa), there is a problem of ambiguity about which term these caveats are describing.This changes the singular
term
property to an array ofterms
, where each term object has its ownterm_ended_early
andterm_started_late
caveats.