mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
flake8 - remove unused imports and ensure they're always at the top of the file
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import itertools
|
||||
from datetime import datetime, timedelta
|
||||
from datetime import datetime
|
||||
|
||||
from app.models import NOTIFICATION_STATUS_TYPES, TEMPLATE_TYPES
|
||||
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
import itertools
|
||||
|
||||
from app.dao.date_util import get_financial_year
|
||||
from notifications_utils.recipients import allowed_to_send_to
|
||||
|
||||
from app.models import (
|
||||
ServiceWhitelist,
|
||||
MOBILE_TYPE, EMAIL_TYPE,
|
||||
KEY_TYPE_TEST, KEY_TYPE_TEAM, KEY_TYPE_NORMAL)
|
||||
|
||||
from notifications_utils.recipients import allowed_to_send_to
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
def get_recipients_from_request(request_json, key, type):
|
||||
return [(type, recipient) for recipient in request_json.get(key)]
|
||||
|
||||
Reference in New Issue
Block a user