Trying to get exceptions and errors to work. I also added a new feature. I need to consolidate the API calls, but not sure how yet... I have a function per action when all that changes is the url...

This commit is contained in:
Norm Rasmussen
2023-02-27 16:04:19 -05:00
parent f1f8c84bbf
commit deb11e07ae
7 changed files with 106 additions and 75 deletions

View File

@ -2,9 +2,9 @@
{% extends 'head.html' %}
{% block content %}
<h4>Hello! Please click below to enter your key.</h4>
{% if error %}
<p class=error><strong> </strong>{{ error }}
{% endif %}
{% for error in error %}
<h2 class=error><strong> {{ error }} </strong></h2>
{% endfor %}
<form action="{{ url_for("ask_key")}}" method="post">
<input type="text" name="apikey">
<input type="submit" value="Submit">