From: Christian Heller Date: Wed, 20 Mar 2024 02:00:50 +0000 (+0100) Subject: For POST /day, do not default to a valid date if none provided. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/error?a=commitdiff_plain;h=df5c37b734bedcb5d026558c32b40977bd028a5a;p=plomtask For POST /day, do not default to a valid date if none provided. --- 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()