From 0007a057a3d49b363ddf80a3a234cc0d314cb699 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sun, 11 Nov 2018 16:53:41 +0100 Subject: [PATCH] round to full hour --- prolefeeder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prolefeeder.py b/prolefeeder.py index e398495..1b415ff 100644 --- a/prolefeeder.py +++ b/prolefeeder.py @@ -26,7 +26,7 @@ class DownloadForm(FlaskForm): def download(): form = DownloadForm() 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 elif form.validate_on_submit(): output_filename = prepare_download(form)