template with many parameters #62
-
Hi all, I have 1 question my template :
question : how do i pass the result to the nomoruang, mata1, mata2 my python code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please use as below
python code: @register_call("f_duid_converter")
def f_duid_converter(session, nomoruang):
from currency_converter import CurrencyConverter
c = CurrencyConverter()
data = session.attr['match'].groupdict()
hasliuang = c.convert(nomoruang, data['mata1'], data['mata2'])
return hasliuang As of now only one parameter can be passed to function from template but you can get all match group data as dict using |
Beta Was this translation helpful? Give feedback.
Please use as below
Template:
python code:
As of now only one parameter can be passed to function from template but you can get all match group data as dict using
session.attr['match'].groupdict()
.we are working on …