Commit 0c027306 authored by Łukasz Nowak's avatar Łukasz Nowak

Support full parameter correctly.

parent 4dcde791
...@@ -56,9 +56,9 @@ kw = {}\n ...@@ -56,9 +56,9 @@ kw = {}\n
if params is None:\n if params is None:\n
params = {}\n params = {}\n
\n \n
last_active_process = context.getLastActiveProcess()\n if not params.get(\'full\', False):\n
\n raise ValueError(params)\n
if last_active_process is not None and params.get(\'full\', False):\n last_active_process = context.getLastActiveProcess()\n
# fetch only objects modified since last alarm run\n # fetch only objects modified since last alarm run\n
kw[\'indexation_timestamp\'] = \'>= %s\' % last_active_process.getStartDate().ISO()\n kw[\'indexation_timestamp\'] = \'>= %s\' % last_active_process.getStartDate().ISO()\n
\n \n
......
111 112
\ 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