Merge pull request #141 from sartography/bugfix/allow-strptime-in-scripts

Bugfix/allow strptime in scripts
This commit is contained in:
Kevin Burnett 2022-10-18 20:04:30 +00:00 committed by GitHub
commit 796735e899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
"""Process_instance_processor."""
import _strptime # type: ignore
import decimal
import json
import logging
@ -52,7 +53,6 @@ from SpiffWorkflow.spiff.serializer import UserTaskConverter
from SpiffWorkflow.task import Task as SpiffTask # type: ignore
from SpiffWorkflow.task import TaskState
from SpiffWorkflow.util.deep_merge import DeepMerge # type: ignore
from spiffworkflow_backend.models.active_task import ActiveTaskModel
from spiffworkflow_backend.models.bpmn_process_id_lookup import BpmnProcessIdLookup
from spiffworkflow_backend.models.file import File
@ -95,6 +95,7 @@ DEFAULT_GLOBALS.update(
"datetime": datetime,
"time": time,
"decimal": decimal,
"_strptime": _strptime,
}
)
# This will overwrite the standard builtins