From a9674d68ab3f15e8c36af6213d99bee876ae7ec7 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 4a13379..621f583 100644 --- a/flaschengeist/plugins/__init__.py +++ b/flaschengeist/plugins/__init__.py @@ -200,7 +200,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):