mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 18:38:26 -04:00
add get_active_services method
* all current invocations of get_services now call get_active_services EXCEPT for platform admin page (where we want to see inactive services * cleaned up parameter names and unpacking (since *params is unhelpful) * fixed incorrect kwarg name in conftest
This commit is contained in:
@@ -68,7 +68,7 @@ def add_service():
|
||||
service_name = form.name.data
|
||||
service_id = _create_service(service_name, email_from)
|
||||
|
||||
if (len(service_api_client.get_services({'user_id': session['user_id']}).get('data', [])) > 1):
|
||||
if (len(service_api_client.get_active_services({'user_id': session['user_id']}).get('data', [])) > 1):
|
||||
return redirect(url_for('main.service_dashboard', service_id=service_id))
|
||||
|
||||
example_sms_template = service_api_client.create_service_template(
|
||||
|
||||
Reference in New Issue
Block a user