Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hey! the var is dynamic!
  • Loading branch information
luipir authored and nyalldawson committed Sep 3, 2019
1 parent 7eaccc9 commit 25ffc9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/BatchPanel.py
Expand Up @@ -218,7 +218,7 @@ def populateByExpression(self, adding=False):
alg_scope.setVariable(k, v, True)

# add batchCount in the alg scope to be used in the expressions. 0 is only an example value
alg_scope.setVariable('row_number', 0, True)
alg_scope.setVariable('row_number', 0, False)

expression_context.appendScope(alg_scope)

Expand Down Expand Up @@ -257,7 +257,7 @@ def populateByExpression(self, adding=False):
alg_scope.setVariable(k, v, True)

# add batch row number as evaluable variable in algorithm scope
alg_scope.setVariable('row_number', row, True)
alg_scope.setVariable('row_number', row, False)

expression_context.appendScope(alg_scope)

Expand Down

0 comments on commit 25ffc9f

Please sign in to comment.