Skip to content

Commit 39c1dcb

Browse files
author
Michael Zhang
committed
Add (unix time) message.
1 parent caf803c commit 39c1dcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forms.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def validate_username(self, field):
5050

5151
class EventForm(Form):
5252
title = StringField('Title', validators=[InputRequired(), Length(max=256)])
53-
start_time = IntegerField('Start Time', validators=[InputRequired(), NumberRange(min=0, max=2147483647,
53+
start_time = IntegerField('Start Time (UNIX Time)', validators=[InputRequired(), NumberRange(min=0, max=2147483647,
5454
message='Start time must be between 0 and 2147483647!')])
55-
duration = FloatField('Duration (hours)', validators=[InputRequired(), NumberRange(min=0, max=2147483647,
55+
duration = FloatField('Duration (Hours)', validators=[InputRequired(), NumberRange(min=0, max=2147483647,
5656
message='Duration must be between 0 and 2147483647!')])
5757
description = StringField('Description', widget=TextArea(), validators=[InputRequired(), Length(max=1024)])
5858
link = StringField('Link', validators=[InputRequired(), Length(max=256)])

0 commit comments

Comments
 (0)