mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-06 13:18:25 -04:00
fix
This commit is contained in:
@@ -9,9 +9,6 @@
|
|||||||
|
|
||||||
__version__ = "10.0.1"
|
__version__ = "10.0.1"
|
||||||
|
|
||||||
import truststore
|
|
||||||
|
|
||||||
truststore.inject_into_ssl() # noqa
|
|
||||||
|
|
||||||
from notifications_python_client.errors import ( # noqa
|
from notifications_python_client.errors import ( # noqa
|
||||||
REQUEST_ERROR_MESSAGE,
|
REQUEST_ERROR_MESSAGE,
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
import truststore
|
import re
|
||||||
|
from datetime import datetime, timezone
|
||||||
truststore.inject_into_ssl() # noqa
|
|
||||||
|
|
||||||
import re # noqa
|
|
||||||
from datetime import datetime, timezone # noqa
|
|
||||||
|
|
||||||
SMS_CHAR_COUNT_LIMIT = 918 # 153 * 6, no network issues but check with providers before upping this further
|
SMS_CHAR_COUNT_LIMIT = 918 # 153 * 6, no network issues but check with providers before upping this further
|
||||||
LETTER_MAX_PAGE_COUNT = 10
|
LETTER_MAX_PAGE_COUNT = 10
|
||||||
|
|||||||
@@ -1,18 +1,14 @@
|
|||||||
import truststore
|
import uuid
|
||||||
|
|
||||||
truststore.inject_into_ssl() # noqa
|
from flask import current_app
|
||||||
|
from sqlalchemy import select
|
||||||
|
|
||||||
import uuid # noqa
|
from app import db
|
||||||
|
from app.dao.api_key_dao import save_model_api_key
|
||||||
from flask import current_app # noqa
|
from app.dao.services_dao import dao_fetch_service_by_id
|
||||||
from sqlalchemy import select # noqa
|
from app.enums import KeyType
|
||||||
|
from app.models import ApiKey
|
||||||
from app import db # noqa
|
from notifications_python_client.authentication import create_jwt_token
|
||||||
from app.dao.api_key_dao import save_model_api_key # noqa
|
|
||||||
from app.dao.services_dao import dao_fetch_service_by_id # noqa
|
|
||||||
from app.enums import KeyType # noqa
|
|
||||||
from app.models import ApiKey # noqa
|
|
||||||
from notifications_python_client.authentication import create_jwt_token # noqa
|
|
||||||
|
|
||||||
|
|
||||||
def create_service_authorization_header(service_id, key_type=KeyType.NORMAL):
|
def create_service_authorization_header(service_id, key_type=KeyType.NORMAL):
|
||||||
|
|||||||
Reference in New Issue
Block a user