Commit 3cd804ea authored by Vincent Pelletier's avatar Vincent Pelletier

Products.CMFActivity.Activity.SQLBase: Fold single-use local.

parent de0b4b3e
...@@ -674,10 +674,9 @@ CREATE TABLE %s ( ...@@ -674,10 +674,9 @@ CREATE TABLE %s (
def distribute(self, activity_tool, node_count): def distribute(self, activity_tool, node_count):
db = activity_tool.getSQLConnection() db = activity_tool.getSQLConnection()
now_date = getNow(db)
where_kw = { where_kw = {
'processing_node': -1, 'processing_node': -1,
'to_date': now_date, 'to_date': getNow(db),
'count': READ_MESSAGE_LIMIT, 'count': READ_MESSAGE_LIMIT,
} }
validated_count = 0 validated_count = 0
......
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