Commit 42d9f452 authored by Vincent Pelletier's avatar Vincent Pelletier

Message tag should not be a part of the message unicity key. This change...

Message tag should not be a part of the message unicity key. This change avoids counting objects multiple times for messages which are identical except for tag.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19195 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c7879900
......@@ -288,9 +288,9 @@ class SQLDict(RAMDict, SQLBase):
# processing_node.
# Their dates are lower-than or equal-to now_date.
# We read each line once so lines have distinct uids.
# So what remains to be filtered on are path, method_id,
# order_validation_text, tag
key = (line.path, line.method_id, line.order_validation_text, line.tag)
# So what remains to be filtered on are path, method_id and
# order_validation_text.
key = (line.path, line.method_id, line.order_validation_text)
original_uid = path_and_method_id_dict.get(key)
if original_uid is not None:
uid_to_duplicate_uid_list_dict.setdefault(original_uid, []).append(line.uid)
......
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