mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
inline notifications-python-client
This commit is contained in:
@@ -2,10 +2,10 @@ import os
|
||||
|
||||
from flask import abort, current_app, has_request_context, request
|
||||
from flask_login import current_user
|
||||
from notifications_python_client import __version__
|
||||
from notifications_python_client.base import BaseAPIClient
|
||||
|
||||
from app.extensions import redis_client
|
||||
from notifications_python_client import __version__
|
||||
from notifications_python_client.base import BaseAPIClient
|
||||
from notifications_utils.clients.redis import RequestCache
|
||||
|
||||
cache = RequestCache(redis_client)
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
from itertools import chain
|
||||
|
||||
from notifications_python_client.errors import HTTPError
|
||||
|
||||
from app.extensions import redis_client
|
||||
from app.notify_client import NotifyAdminAPIClient, cache
|
||||
from notifications_python_client.errors import HTTPError
|
||||
|
||||
|
||||
class OrganizationsClient(NotifyAdminAPIClient):
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
from flask import current_app
|
||||
from notifications_python_client.errors import HTTPError
|
||||
|
||||
from app.notify_client import NotifyAdminAPIClient, cache
|
||||
from app.utils import hilite
|
||||
from app.utils.user_permissions import translate_permissions_from_ui_to_db
|
||||
from notifications_python_client.errors import HTTPError
|
||||
|
||||
ALLOWED_ATTRIBUTES = {
|
||||
"name",
|
||||
|
||||
Reference in New Issue
Block a user