From df5c37b734bedcb5d026558c32b40977bd028a5a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 20 Mar 2024 03:00:50 +0100 Subject: [PATCH] For POST /day, do not default to a valid date if none provided. --- plomtask/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plomtask/http.py b/plomtask/http.py index be7affa..794ce1f 100644 --- a/plomtask/http.py +++ b/plomtask/http.py @@ -59,7 +59,7 @@ class TaskHandler(BaseHTTPRequestHandler): postvars = parse_qs(self.rfile.read(length).decode(), keep_blank_values=1) if 'day' == site: - date = params.get('date', ['2024-01-01'])[0] + date = params.get('date', [None])[0] self.do_POST_day(conn, date, postvars) conn.commit() conn.close() -- 2.30.2