From 2d4c8ebfd97b9392317e1cede36260076fdc030b Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 7 Mar 2022 14:36:31 +0100 Subject: [PATCH] fix(plugins): Fix functions using id instead of name property --- flaschengeist/plugins/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flaschengeist/plugins/__init__.py b/flaschengeist/plugins/__init__.py index d655510..87ef13c 100644 --- a/flaschengeist/plugins/__init__.py +++ b/flaschengeist/plugins/__init__.py @@ -109,7 +109,7 @@ class Plugin: """ from ..controller import pluginController - return pluginController.get_setting(self.id, name, **kwargs) + return pluginController.get_setting(self.name, name, **kwargs) def set_setting(self, name: str, value): """Save setting in database @@ -120,7 +120,7 @@ class Plugin: """ from ..controller import pluginController - return pluginController.set_setting(self.id, name, value) + return pluginController.set_setting(self.name, name, value) def notify(self, user, text: str, data=None): """Create a new notification for an user @@ -136,7 +136,7 @@ class Plugin: """ from ..controller import pluginController - return pluginController.notify(self.id, user, text, data) + return pluginController.notify(self.name, user, text, data) def serialize(self): """Serialize a plugin into a dict