Commit 957893f6 authored by Vincent Pelletier's avatar Vincent Pelletier

Move a constant assert outside of "for" loop.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17374 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f94fe510
......@@ -553,6 +553,7 @@ def WorkflowTool_refreshWorklistCache(self):
groupWorklistListByCondition(
worklist_dict=worklist_dict,
acceptable_key_dict=acceptable_key_dict)
assert COUNT_COLUMN_TITLE in table_column_id_set
for grouped_worklist_dict in worklist_list_grouped_by_condition:
# Generate the query for this worklist_list
(total_criterion_id_list, query) = \
......@@ -565,7 +566,6 @@ def WorkflowTool_refreshWorklistCache(self):
total_criterion_id_list.append(security_column_id)
group_by_expression = ', '.join(total_criterion_id_list)
assert COUNT_COLUMN_TITLE not in total_criterion_id_list
assert COUNT_COLUMN_TITLE in table_column_id_set
select_expression = 'count(*) as %s, %s' % (COUNT_COLUMN_TITLE,
group_by_expression)
search_result_kw = {'select_expression': select_expression,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment