From 4f15f8824c5bbcb358b5284f3874a9f01d026063 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 19 Dec 2008 10:33:45 +0000 Subject: [PATCH] Use a dict-type value instead of manually rendering time as a string (the only purpose was to prepend a comparison operator). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24945 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Tool/SimulationTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py index 697be578db..1febc3a7c3 100644 --- a/product/ERP5/Tool/SimulationTool.py +++ b/product/ERP5/Tool/SimulationTool.py @@ -1048,7 +1048,7 @@ class SimulationTool(BaseTool): # 'Use explicitly Universal' otherwise DateTime # search key will convert it to UTC one more time Query(**{'%s.date' % (GREATER_THAN_DATE_TABLE_ID, ): \ - '>%s Universal' % (date.ISO(), )}), + {'query': '%s Universal' % (date.ISO(), ), 'range': 'nlt'}}), operator='AND')) assert len(equal_date_query_list) == \ len(greater_than_date_query_list) -- 2.30.9