Shorten form choices labels

This commit is contained in:
2020-06-14 00:14:09 +02:00
parent 7a459da204
commit a36cc719ef
5 changed files with 11 additions and 13 deletions

View File

@@ -2,7 +2,7 @@ from json import dump
from requests import get
from constants import FILES, URL
from constants import URL
def format_url(dataset) -> str:

View File

@@ -1,9 +1,8 @@
from constants import DATASETS
from constants import CHOICES
from flask_wtf import FlaskForm
from wtforms import SelectField, SubmitField
# NOTE The choices should be shorter
class DatasetForm(FlaskForm):
dataset = SelectField(choices=DATASETS)
dataset = SelectField(choices=CHOICES)
submit = SubmitField("Submit")

View File

@@ -3,7 +3,6 @@
{% block app_content %}
<h1>Dataset visualization</h1>
<img src="data:image/png;base64,{{ plot }}" alt="Plot Placeholder">
<img src="data:image/png;base64,{{ map }}" alt="Map Placeholder">
{{ table|safe }}
<p><a href="{{ url_for('data') }}">Back</a></p>
{% endblock %}