round to full hour
This commit is contained in:
parent
754f4037ca
commit
0007a057a3
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ class DownloadForm(FlaskForm):
|
||||||
def download():
|
def download():
|
||||||
form = DownloadForm()
|
form = DownloadForm()
|
||||||
if request.method == 'GET':
|
if request.method == 'GET':
|
||||||
form.start_time.data = datetime.now() - timedelta(hours=1)
|
form.start_time.data = datetime.now().replace(minute=0, second=0) - timedelta(hours=1)
|
||||||
form.length.data = 60
|
form.length.data = 60
|
||||||
elif form.validate_on_submit():
|
elif form.validate_on_submit():
|
||||||
output_filename = prepare_download(form)
|
output_filename = prepare_download(form)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue