mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-23 11:51:05 -05:00
Remove redundant sorting when editing SMS ratios
This is irrelevant since we no longer pick a "first" provider.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from datetime import datetime
|
||||
from operator import itemgetter
|
||||
|
||||
from flask import render_template, url_for
|
||||
from werkzeug.utils import redirect
|
||||
@@ -46,13 +45,11 @@ def add_monthly_traffic(domestic_sms_providers):
|
||||
@main.route("/provider/edit-sms-provider-ratio", methods=['GET', 'POST'])
|
||||
@user_is_platform_admin
|
||||
def edit_sms_provider_ratio():
|
||||
|
||||
providers = sorted([
|
||||
providers = [
|
||||
provider
|
||||
for provider in provider_client.get_all_providers()['provider_details']
|
||||
if provider['notification_type'] == 'sms'
|
||||
and provider['active']
|
||||
], key=itemgetter('identifier'))
|
||||
if provider['notification_type'] == 'sms' and provider['active']
|
||||
]
|
||||
|
||||
form = AdminProviderRatioForm(providers)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user