mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-24 23:28:32 +08:00

- Introduce `WorkflowDraftVariable` model and the corresponding migration. - Implement `EnumText`, a custom column type for SQLAlchemy designed to work seamlessly with enumeration classes based on `StrEnum`.
9 lines
234 B
Python
9 lines
234 B
Python
from collections.abc import Iterable, Sequence
|
|
|
|
|
|
def to_selector(node_id: str, name: str, paths: Iterable[str] = ()) -> Sequence[str]:
|
|
selectors = [node_id, name]
|
|
if paths:
|
|
selectors.extend(paths)
|
|
return selectors
|