From 5424ee38e7cfd4b44640c432d6ba4f2e6ee8b2d3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 11 Jan 2022 01:10:34 +0100 Subject: [PATCH] rename to makr internal functions as internal so --- InvenTree/plugin/integration.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/InvenTree/plugin/integration.py b/InvenTree/plugin/integration.py index 9936fed1fa..825472fe7c 100644 --- a/InvenTree/plugin/integration.py +++ b/InvenTree/plugin/integration.py @@ -83,7 +83,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin): self.def_path = inspect.getfile(self.__class__) self.path = os.path.dirname(self.def_path) - self.set_package() + self.define_package() @property def _is_package(self): @@ -217,23 +217,23 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin): # endregion # region package info - def get_package_commit(self): + def _get_package_commit(self): """ Get last git commit for the plugin """ return get_git_log(self.def_path) - def get_package_metadata(self): + def _get_package_metadata(self): """ Get package metadata for plugin """ return {} - def set_package(self): + def define_package(self): """ Add package info of the plugin into plugins context """ - package = self.get_package_metadata() if self._is_package else self.get_package_commit() + package = self._get_package_metadata() if self._is_package else self._get_package_commit() # process date if package.get('date'):