mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Initialise clients outside the app
This avoids the annoying problem where you can’t import a client unless the app has already been initialised.
This commit is contained in:
@@ -8,3 +8,6 @@ class StatusApiClient(NotifyAdminAPIClient):
|
||||
|
||||
def get_status(self, *params):
|
||||
return self.get(url='/_status', *params)
|
||||
|
||||
|
||||
status_api_client = StatusApiClient()
|
||||
|
||||
Reference in New Issue
Block a user