Commit 9dadb6dd authored by Vincent Pelletier's avatar Vincent Pelletier

Products.CMFActivity.Activity.SQLBase: Make set operations more readable.

parent 5b96a405
Pipeline #20123 failed with stage
...@@ -617,10 +617,10 @@ CREATE TABLE %s ( ...@@ -617,10 +617,10 @@ CREATE TABLE %s (
dependent_message_set = dependency_value_dict[row2key(row)] dependent_message_set = dependency_value_dict[row2key(row)]
# queue blocked messages for processing in the beginning of next # queue blocked messages for processing in the beginning of next
# outermost iteration. # outermost iteration.
new_blocked_message_set.update(dependent_message_set) new_blocked_message_set |= dependent_message_set
# ...but update result immediately, in case there is no next # ...but update result immediately, in case there is no next
# outermost iteration. # outermost iteration.
result.difference_update(dependent_message_set) result -= dependent_message_set
del subquery_list[_MAX_DEPENDENCY_UNION_SUBQUERY_COUNT:] del subquery_list[_MAX_DEPENDENCY_UNION_SUBQUERY_COUNT:]
dependency_value_dict.clear() dependency_value_dict.clear()
return result return result
......
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