From d9916873cbe5379408fb715f8e11391b399e10ae Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 28 Aug 2024 00:14:54 +0200 Subject: [PATCH] [procedures] Store `actions` for YAML procedures. --- platypush/entities/procedures.py | 1 + platypush/plugins/procedures/__init__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/platypush/entities/procedures.py b/platypush/entities/procedures.py index 3609542f..eef3427b 100644 --- a/platypush/entities/procedures.py +++ b/platypush/entities/procedures.py @@ -35,6 +35,7 @@ if not is_defined('procedure'): module = Column(String) source = Column(String) line = Column(Integer) + actions = Column(JSON) __table_args__ = {'keep_existing': True} __mapper_args__ = { diff --git a/platypush/plugins/procedures/__init__.py b/platypush/plugins/procedures/__init__.py index dfb98042..d8892e60 100644 --- a/platypush/plugins/procedures/__init__.py +++ b/platypush/plugins/procedures/__init__.py @@ -38,6 +38,7 @@ class ProceduresPlugin(RunnablePlugin, ProcedureEntityManager): source=metadata.get('source'), line=metadata.get('line'), args=metadata.get('args', []), + actions=metadata.get('actions', []), ) @action