From c2a9726ec643ab929de7bf45716995f6a7f5264e Mon Sep 17 00:00:00 2001 From: alemidev Date: Thu, 28 Apr 2022 13:46:14 +0200 Subject: [PATCH] install providers first --- src/treepuncher/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/treepuncher/__main__.py b/src/treepuncher/__main__.py index ffbad66..7965a6e 100644 --- a/src/treepuncher/__main__.py +++ b/src/treepuncher/__main__.py @@ -15,7 +15,7 @@ from dataclasses import dataclass, MISSING, fields from setproctitle import setproctitle -from .treepuncher import Treepuncher, MissingParameterError, Addon, ConfigObject, Notifier +from .treepuncher import Treepuncher, MissingParameterError, Addon, ConfigObject, Provider from .helpers import configure_logging def main(): @@ -103,15 +103,15 @@ def main(): ) ) - # TODO ugly af! notifiers get installed first tho + # TODO ugly af! providers get installed first tho for addon in addons: - if addon.__name__.lower() in enabled_addons and issubclass(addon, Notifier): + if addon.__name__.lower() in enabled_addons and issubclass(addon, Provider): logging.info("Installing '%s'", addon.__name__) client.install(addon) for addon in addons: - if addon.__name__.lower() in enabled_addons and not issubclass(addon, Notifier): + if addon.__name__.lower() in enabled_addons and not issubclass(addon, Provider): logging.info("Installing '%s'", addon.__name__) client.install(addon)