This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 155481e Fix silly max split error
155481e is described below
commit 155481ec4e7b01be0d328d52776976dbdb6f6af3
Author: Sebb <[email protected]>
AuthorDate: Wed Sep 22 23:15:51 2021 +0100
Fix silly max split error
---
server/plugins/defuzzer.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/plugins/defuzzer.py b/server/plugins/defuzzer.py
index de0a26b..970d62c 100644
--- a/server/plugins/defuzzer.py
+++ b/server/plugins/defuzzer.py
@@ -74,8 +74,8 @@ def defuzz(formdata: dict, nodate: bool = False,
list_override: typing.Optional[
if m:
dfr = m.group(1)
dto = m.group(2)
- syear, smonth, sday = dfr.split("-", 1)
- eyear, emonth, eday = dto.split("-", 1)
+ syear, smonth, sday = dfr.split("-", 2)
+ eyear, emonth, eday = dto.split("-", 2)
daterange = {
"gt": "%04u/%02u/%02u 00:00:00" % (int(syear), int(smonth),
int(sday)),
"lt": "%04u/%02u/%02u 23:59:59" % (int(eyear), int(emonth),
int(eday)),