@@ -611,27 +611,27 @@ def set_per_day_international_sms_message_limit(service_id):
611611 "views/service-settings/set-message-limit-for-international-sms.html" ,
612612 form = form ,
613613 error_summary_enabled = True ,
614- partials = get_daily_limit_partials (notification_type = "international_sms" ),
614+ partials = get_daily_limit_partials (daily_limit_type = "international_sms" ),
615615 updates_url = url_for (
616616 "json_updates.view_remaining_limit" ,
617617 service_id = service_id ,
618- notification_type = "international_sms" ,
618+ daily_limit_type = "international_sms" ,
619619 ),
620620 )
621621
622622
623623@json_updates .route (
624- "/services/<uuid:service_id>/service-settings/<template_type:notification_type >/remaining-today.json"
624+ "/services/<uuid:service_id>/service-settings/<daily_limit_type:daily_limit_type >/remaining-today.json"
625625)
626626@user_has_permissions ("manage_service" )
627- def view_remaining_limit (service_id , notification_type ):
628- return jsonify (** get_daily_limit_partials (notification_type = notification_type ))
627+ def view_remaining_limit (service_id , daily_limit_type ):
628+ return jsonify (** get_daily_limit_partials (daily_limit_type = daily_limit_type ))
629629
630630
631- def get_daily_limit_partials (notification_type ):
631+ def get_daily_limit_partials (daily_limit_type ):
632632 return {
633633 "remaining_limit" : render_template (
634- "partials/daily-limits/remaining-limit.html" , notification_type = notification_type
634+ "partials/daily-limits/remaining-limit.html" , daily_limit_type = daily_limit_type
635635 ),
636636 }
637637
0 commit comments