From 8cc59eb33782a59e8b6d38ef674627370a735404 Mon Sep 17 00:00:00 2001 From: Elizabeth Esswein Date: Fri, 14 Oct 2022 13:27:40 -0400 Subject: [PATCH] add strptime to script engine --- .../services/process_instance_processor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spiffworkflow_backend/services/process_instance_processor.py b/src/spiffworkflow_backend/services/process_instance_processor.py index f8204ff2..547f5b32 100644 --- a/src/spiffworkflow_backend/services/process_instance_processor.py +++ b/src/spiffworkflow_backend/services/process_instance_processor.py @@ -4,6 +4,7 @@ import json import logging import os import time +import _strptime # type: ignore from datetime import datetime from typing import Any from typing import Callable @@ -95,6 +96,7 @@ DEFAULT_GLOBALS.update( "datetime": datetime, "time": time, "decimal": decimal, + "_strptime": _strptime, } ) # This will overwrite the standard builtins