Shorten form choices labels
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user