mirror of https://github.com/langgenius/dify.git
Currently, `WorkflowNodeExecution.execution_metadata_dict` returns `None` when metadata is absent in the database. This requires all callers to perform `None` checks when processing metadata, leading to more complex caller-side logic. This pull request updates the `execution_metadata_dict` method to return an empty dictionary instead of `None` when metadata is absent. This change would simplify the caller logic, as it removes the need for explicit `None` checks and provides a more consistent data structure to work with. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| account.py | ||
| api_based_extension.py | ||
| base.py | ||
| dataset.py | ||
| engine.py | ||
| enums.py | ||
| model.py | ||
| provider.py | ||
| source.py | ||
| task.py | ||
| tools.py | ||
| types.py | ||
| web.py | ||
| workflow.py | ||