diff --git a/app/forms.py b/app/forms.py
index c3aacd0..3c749ac 100755
--- a/app/forms.py
+++ b/app/forms.py
@@ -25,7 +25,6 @@ class UploadForm(FlaskForm):
sameness = DecimalRangeField('sameness', default=0)
diversity = DecimalRangeField('diversity', default=0)
gender = DecimalRangeField('gender', default=50)
- time = StringField('time', [validators.Length(max=5)],default=None)
choices = [('Student', 'Student'),
('Librarian', 'Librarian'),
('Pirate', 'Pirate'),
@@ -43,6 +42,17 @@ class EditForm(FlaskForm):
year_published = StringField('year published', [validators.Length(max=4)],default=None)
file = FileField()
message = StringField('message')
+ sameness = DecimalRangeField('sameness', default=0)
+ diversity = DecimalRangeField('diversity', default=0)
+ gender = DecimalRangeField('gender', default=50)
+ choices = [('Student', 'Student'),
+ ('Librarian', 'Librarian'),
+ ('Pirate', 'Pirate'),
+ ('Teacher', 'Teacher'),
+ ('Institution', 'Institution'),
+ ('All of the above', 'All of the above'),
+ ('None of the above', 'None of the above')]
+ who = SelectField('', choices=choices, default='Student')
class ChatForm(FlaskForm):
message = StringField('message', validators=[InputRequired()])
diff --git a/app/models.py b/app/models.py
index 68b7a23..77cb93f 100755
--- a/app/models.py
+++ b/app/models.py
@@ -46,10 +46,9 @@ class Book(db.Model):
diversity = db.Column(db.Numeric())
gender = db.Column(db.Numeric())
who = db.Column(db.String(255))
- time = db.Column(db.Numeric())
- def __init__(self, title, file, cover, fileformat, category, year_published, message, sameness, diversity, gender, who, time):
+ def __init__(self, title, file, cover, fileformat, category, year_published, message, sameness, diversity, gender, who):
self.title = title
self.file = file
self.cover = cover
@@ -64,7 +63,6 @@ class Book(db.Model):
self.diversity = diversity
self.gender = gender
self.who = who
- self.time = time
def __repr__(self):
diff --git a/app/templates/add_book.html b/app/templates/add_book.html
index 2c95484..c49bd2c 100755
--- a/app/templates/add_book.html
+++ b/app/templates/add_book.html
@@ -68,17 +68,12 @@ Check the bibliography. How diverse are the references in this book?