From 05667787de7bc2e006181817adfe3c290edefc6f Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 23 Dec 2021 03:06:54 +0100 Subject: [PATCH] fix(plugins): Fix plugin version for plugin list API endpoint --- flaschengeist/plugins/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flaschengeist/plugins/__init__.py b/flaschengeist/plugins/__init__.py index a08c3e7..1b6fdda 100644 --- a/flaschengeist/plugins/__init__.py +++ b/flaschengeist/plugins/__init__.py @@ -203,7 +203,8 @@ class Plugin: Returns: Dict containing version and permissions of the plugin """ - return {"version": self.version, "permissions": self.permissions} + from flaschengeist.utils.plugin import plugin_version + return {"version": plugin_version(self), "permissions": self.permissions} class AuthPlugin(Plugin):