Restructured how clients are implemented.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-04 09:00:41 -05:00
parent 3ff6d38660
commit d714ebcd5d
5 changed files with 19 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ class PerformancePlatformClient:
def active(self):
return self._active
def init_app(self, app):
def init_app(self, app, *args, **kwargs):
self._active = app.config.get("PERFORMANCE_PLATFORM_ENABLED")
if self.active:
self.performance_platform_url = app.config.get("PERFORMANCE_PLATFORM_URL")