Skip to content
Snippets Groups Projects
Unverified Commit d7b703df authored by hanfi's avatar hanfi
Browse files

fix date parsing

parent 8401ab6a
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,8 @@ class TransportForm(FlaskForm):
validators=[
DataRequired(),
DateRange(
min=datetime.strptime(app.config["MIN_DATE"], "%Y-%m-%d"),
max=datetime.strptime(app.config["MAX_DATE"], "%Y-%m-%d"),
min=datetime.strptime(app.config["MIN_DATE"], "%Y-%m-%d").date(),
max=datetime.strptime(app.config["MAX_DATE"], "%Y-%m-%d").date(),
),
],
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment