From 46a6087e67b5825d5c3f788df9468148dfd7a236 Mon Sep 17 00:00:00 2001 From: Gelot Ayush Date: Thu, 10 Oct 2024 16:21:18 +0100 Subject: [PATCH] added transform function --- shufflepy/module.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shufflepy/module.py b/shufflepy/module.py index 8eff31e..5115d5c 100644 --- a/shufflepy/module.py +++ b/shufflepy/module.py @@ -98,6 +98,12 @@ def send_message(self, app="", org_id=""): org_id=org_id ) + def transform(self, data, action): + if action == "list_tickets": + return self.list_tickets(data) + else: + raise ValueError(f"Unknown action: {action}") + def list_tickets(self, app="", org_id=""): return self.connect( app=app,