From 015ef353d920fec80598865eefb95f43546e7052 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 edfe243..c6ead51 100644 --- a/flaschengeist/plugins/__init__.py +++ b/flaschengeist/plugins/__init__.py @@ -180,7 +180,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):