From 04dcf39dfc01f0bab19564c855f931094cb698c7 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 ac505de..ef46fed 100644 --- a/flaschengeist/plugins/__init__.py +++ b/flaschengeist/plugins/__init__.py @@ -233,7 +233,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):