home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcfff0b
)
For POST /day, do not default to a valid date if none provided.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 20 Mar 2024 02:00:50 +0000
(
03:00
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 20 Mar 2024 02:00:50 +0000
(
03:00
+0100)
plomtask/http.py
patch
|
blob
|
history
diff --git
a/plomtask/http.py
b/plomtask/http.py
index be7affac268f23eecd5e0c232d9c17e2ac5bfeff..794ce1f7139c85512b37238defba243d18f42c35 100644
(file)
--- 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()