mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 12:17:43 +08:00
[python] Fix global params bug (#7971)
This commit is contained in:
parent
1c0ad53a35
commit
891b5663a8
@ -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,
|
||||
|
@ -159,11 +159,11 @@ def test__parse_datetime_not_support_type(val: Any):
|
||||
[
|
||||
(
|
||||
None,
|
||||
None,
|
||||
[],
|
||||
),
|
||||
(
|
||||
{},
|
||||
None,
|
||||
[],
|
||||
),
|
||||
(
|
||||
{"key1": "val1"},
|
||||
|
Loading…
Reference in New Issue
Block a user