Oh dear! I've done goofed!
Something's gone wrong! Sorry about this, but I think you're
giving me bum data (as mom always says: garbage in, garbage out!)
Chances are one of the Legislators you've given me don't exist
anymore.
Auto-smarts (common error autodetection)
{% if same != None %}
{% if sameid == leg1 and leg2 in same|private:'all_ids' %}
Legislator 2 has already been merged into Legislator 1.
No additional merge needed.
{% else %}
{% if sameid == leg2 and leg1 in same|private:'all_ids' %}
Legislator 1 has already been merged into Legislator 2.
No additional merge needed.
{% else %}
Neither Legislator 1 nor Legislator 2 have been
merged into eachother. If one of the Legislators
show up as missing or merged, they might (check
the hrefs) be already merged or missing.
{% endif %}
{% endif %}
{% else %}
Neither {{ leg1 }} nor {{ leg2 }} exist as root
Legislators - they might be already merged, missing, or some
crazy combo of both.
{% endif %}
Detailed Report
{% if leg1_db == None %}
Warning:
{{ leg1 }} is removed from the database or merged with another Legislator.
{% else %}
I've found
{{ leg1 }}
in the DB, and is a root legislator currently. This means I
am able to merge this Legislator with another.
{% endif %}
{% if leg2_db == None %}
Warning:
{{ leg2 }} is removed from the database or merged with another Legislator.
{% else %}
I've found
{{ leg2 }}
in the DB, and is a root legislator currently. This means I
am able to merge this Legislator with another.
{% endif %}