From 511d8075e25de2b7695bc17269fbeac5d3134317 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Fri, 17 Dec 2021 18:12:16 +0100 Subject: [PATCH] typo --- app.py | 8 +++++--- templates/index.html | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 206a4ca..237ddee 100644 --- a/app.py +++ b/app.py @@ -35,8 +35,10 @@ class UploadForm(FlaskForm): title = RadioField( "title", choices=[("side a", "side a"), ("side b", "side b")], default="side a" ) - author = RadioField( - "author", choices=[("side a", "side a"), ("side b", "side b")], default="side a" + authors = RadioField( + "authors", + choices=[("side a", "side a"), ("side b", "side b")], + default="side a", ) comments = RadioField( "comments", @@ -86,7 +88,7 @@ def upload(): os.path.join(CWD, "metadatum", metadata_name) ) - fields = ["title", "author", "comments", "timestamp", "tags"] + fields = ["title", "authors", "comments", "timestamp", "tags"] side_a = [ field for field in upload_form.data.keys() diff --git a/templates/index.html b/templates/index.html index c488e4a..83c617d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -37,8 +37,8 @@ {{ upload_form.title.label }} {{ upload_form.title }} - {{ upload_form.author.label }} - {{ upload_form.author }} + {{ upload_form.authors.label }} + {{ upload_form.authors }} {{ upload_form.comments.label }} {{ upload_form.comments }}