From b5d34ab6a79627eace328a0ac8a917a8b1f502ab Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 2 Nov 2007 17:00:11 +0000 Subject: [PATCH] Cast retrieved count as an int, since it can be returned as a string when using ZSQLMethod instead of portal catalog. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17370 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/patches/WorkflowTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/patches/WorkflowTool.py b/product/ERP5Type/patches/WorkflowTool.py index d3e34af024..754a3bb3a6 100644 --- a/product/ERP5Type/patches/WorkflowTool.py +++ b/product/ERP5Type/patches/WorkflowTool.py @@ -399,7 +399,7 @@ def sumCatalogResultByWorklist(grouped_worklist_dict, catalog_result): criterion_value_to_worklist_key_dict[criterion_value_key]: count = worklist_result_dict.get(worklist_id, 0) worklist_result_dict[worklist_id] = count + \ - result_line[COUNT_COLUMN_TITLE] + int(result_line[COUNT_COLUMN_TITLE]) return worklist_result_dict def generateActionList(worklist_metadata, worklist_result, portal_url): -- 2.30.9