From 62980cc9e20fdee1cdb9db389cc5b48523b3336d 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 3609542fef..eef3427bbc 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 dfb98042bd..d8892e60c3 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