We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5a3510 + 8a3cc0a commit a598ad6Copy full SHA for a598ad6
2 files changed
scriptshifter/rest_api.py
@@ -73,7 +73,10 @@ def handle_exception(e: ApiError):
73
def index():
74
return render_template(
75
"index.html",
76
- languages=list_tables(),
+ languages=sorted(
77
+ list_tables().items(),
78
+ key=lambda k: k[1]["label"]
79
+ ),
80
version_info=(GIT_TAG, GIT_COMMIT),
81
feedback_form=SMTP_HOST is not None or FEEDBACK_PATH is not None)
82
scriptshifter/templates/index.html
@@ -59,7 +59,7 @@
59
<textarea id="text" name="text"></textarea>
60
<label for="lang">Language</label>
61
<select id="lang" name="lang">
62
- {% for k, v in languages.items() %}
+ {% for k, v in languages %}
63
<option value="{{ k }}">{{ v["label"] }}</option>
64
{% endfor %}
65
</select>
0 commit comments