mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
some code review feedback
This commit is contained in:
@@ -31,8 +31,7 @@ def service_agreement(service_id):
|
||||
@main.route('/services/<uuid:service_id>/agreement.pdf')
|
||||
@user_has_permissions('manage_service')
|
||||
def service_download_agreement(service_id):
|
||||
return send_file(**get_mou(
|
||||
))
|
||||
return send_file(**get_mou())
|
||||
|
||||
|
||||
@main.route('/services/<uuid:service_id>/agreement/accept', methods=['GET', 'POST'])
|
||||
@@ -88,8 +87,7 @@ def public_agreement(variant):
|
||||
abort(404)
|
||||
|
||||
if request.endpoint == 'main.public_download_agreement':
|
||||
return send_file(**get_mou(
|
||||
))
|
||||
return send_file(**get_mou())
|
||||
|
||||
return render_template(
|
||||
'views/agreement/agreement-public.html',
|
||||
|
||||
@@ -469,6 +469,4 @@ def organisation_billing(org_id):
|
||||
@main.route('/organisations/<uuid:org_id>/agreement.pdf')
|
||||
@user_is_platform_admin
|
||||
def organisation_download_agreement(org_id):
|
||||
return send_file(**get_mou(
|
||||
|
||||
))
|
||||
return send_file(**get_mou())
|
||||
|
||||
Reference in New Issue
Block a user