add sum and format
This commit is contained in:
parent
d282f66a5c
commit
1215e18287
|
@ -151,16 +151,18 @@ class CustomBpmnScriptEngine(PythonScriptEngine): # type: ignore
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
"""__init__."""
|
"""__init__."""
|
||||||
default_globals = {
|
default_globals = {
|
||||||
"timedelta": timedelta,
|
|
||||||
"datetime": datetime,
|
|
||||||
"dateparser": dateparser,
|
|
||||||
"pytz": pytz,
|
|
||||||
"time": time,
|
|
||||||
"decimal": decimal,
|
|
||||||
"_strptime": _strptime,
|
"_strptime": _strptime,
|
||||||
|
"dateparser": dateparser,
|
||||||
|
"datetime": datetime,
|
||||||
|
"decimal": decimal,
|
||||||
"enumerate": enumerate,
|
"enumerate": enumerate,
|
||||||
|
"format": format,
|
||||||
"list": list,
|
"list": list,
|
||||||
"map": map,
|
"map": map,
|
||||||
|
"pytz": pytz,
|
||||||
|
"sum": sum,
|
||||||
|
"time": time,
|
||||||
|
"timedelta": timedelta,
|
||||||
}
|
}
|
||||||
|
|
||||||
# This will overwrite the standard builtins
|
# This will overwrite the standard builtins
|
||||||
|
|
Loading…
Reference in New Issue