mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -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:
@@ -12,3 +12,6 @@ class EventsApiClient(NotifyAdminAPIClient):
|
||||
}
|
||||
resp = self.post(url='/events', data=data)
|
||||
return resp['data']
|
||||
|
||||
|
||||
events_api_client = EventsApiClient()
|
||||
|
||||
Reference in New Issue
Block a user