Commit 8cc5c860 authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid duplicates.

Inner joins can return duplicate lines in some cases.
parent e87ff59e
...@@ -324,6 +324,7 @@ ...@@ -324,6 +324,7 @@
kw[\'select_dict\']=select_dict\n kw[\'select_dict\']=select_dict\n
kw[\'left_join_list\']=select_dict.keys()\n kw[\'left_join_list\']=select_dict.keys()\n
kw[\'delivery_uid\']=None\n kw[\'delivery_uid\']=None\n
kw[\'group_by\']=(\'uid\',)\n
if src__==0:\n if src__==0:\n
return context.portal_catalog(**kw)\n return context.portal_catalog(**kw)\n
else:\n else:\n
......
393 394
\ No newline at end of file \ No newline at end of file
...@@ -64,6 +64,7 @@ kw.update(\n ...@@ -64,6 +64,7 @@ kw.update(\n
select_dict=select_dict,\n select_dict=select_dict,\n
left_join_list=select_dict.keys(),\n left_join_list=select_dict.keys(),\n
delivery_uid=None,\n delivery_uid=None,\n
group_by=(\'uid\',),\n
**{\'movement.destination_uid\': person_uid}\n **{\'movement.destination_uid\': person_uid}\n
)\n )\n
movement_list = context.portal_catalog(**kw)\n movement_list = context.portal_catalog(**kw)\n
......
59 60
\ No newline at end of file \ No newline at end of file
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