Remove keyword args from call to create service

The cache decorator doesn’t work with functions that use keyword
arguments (at the moment).
This commit is contained in:
Chris Hill-Scott
2018-04-19 13:46:34 +01:00
parent 6acde6e1f0
commit bde696cf56
2 changed files with 18 additions and 18 deletions

View File

@@ -29,12 +29,12 @@ def _create_service(service_name, organisation_type, email_from, form):
free_sms_fragment_limit = current_app.config['DEFAULT_FREE_SMS_FRAGMENT_LIMITS'].get(organisation_type)
try:
service_id = service_api_client.create_service(
service_name=service_name,
organisation_type=organisation_type,
message_limit=current_app.config['DEFAULT_SERVICE_LIMIT'],
restricted=True,
user_id=session['user_id'],
email_from=email_from,
service_name,
organisation_type,
current_app.config['DEFAULT_SERVICE_LIMIT'],
True,
session['user_id'],
email_from,
)
session['service_id'] = service_id