some code review feedback

This commit is contained in:
Kenneth Kehl
2023-04-20 11:32:28 -07:00
parent 1a2bd34ccb
commit ec23f2077f
5 changed files with 5 additions and 10 deletions

View File

@@ -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',

View File

@@ -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())