[python] Fix global params bug (#7971)

This commit is contained in:
Devosend 2022-01-14 10:41:46 +08:00 committed by GitHub
parent 1c0ad53a35
commit 891b5663a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ class ProcessDefinition(Base):
"""Return param json base on self.param."""
# Handle empty dict and None value
if not self.param:
return None
return []
return [
{
"prop": k,

View File

@ -159,11 +159,11 @@ def test__parse_datetime_not_support_type(val: Any):
[
(
None,
None,
[],
),
(
{},
None,
[],
),
(
{"key1": "val1"},