Merge "Fixed PyScripts.start_script method to return the updated data object"
This commit is contained in:
commit
0ca167cd02
|
@ -76,7 +76,7 @@ class PyScripts(rating.RatingProcessorBase):
|
|||
def start_script(self, code, data):
|
||||
context = {'data': data}
|
||||
exec(code, context) # nosec
|
||||
return data
|
||||
return context['data']
|
||||
|
||||
def process(self, data):
|
||||
for script in self._scripts.values():
|
||||
|
|
Loading…
Reference in New Issue