home · contact · privacy
For POST /day, do not default to a valid date if none provided.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 20 Mar 2024 02:00:50 +0000 (03:00 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 20 Mar 2024 02:00:50 +0000 (03:00 +0100)
plomtask/http.py

index be7affac268f23eecd5e0c232d9c17e2ac5bfeff..794ce1f7139c85512b37238defba243d18f42c35 100644 (file)
@@ -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()