Format CCEID page

pull/1/head
Sean Redmond 2019-07-14 11:09:05 -04:00
parent 1b6b0835d6
commit 5618ad45fb
2 changed files with 9 additions and 4 deletions

View File

@ -111,14 +111,15 @@ def extract_last(pg):
def cceid(cceid):
try:
results = registration(cceid)
return render_template('search/cceid.html', results=results)
return render_template('search/cceid.html', result=results["data"])
except HTTPError:
try:
results = renewal(cceid)
return render_template('search/cceid.html', results=results)
return render_template('search/cceid.html',
result=results["data"][0])
except HTTPError:
pass
return render_template('search/cceid.html', results=None, error=1)
return render_template('search/cceid.html', result=None, error=1)

View File

@ -5,6 +5,10 @@
{% endblock %}
{% block content %}
{{ results }}
{% if result["type"] %}
{% include "search/render_renewal.html" %}
{% else %}
{% include "search/render_registration.html" %}
{% endif %}
{% endblock %}