У меня есть этот код Python:
@reports_api.route('/reports/xlsx/organisations/<int:organisation_id>/', methods=['GET'])
@reconnect_to_db
@check_permissions(request, employee_constraints={}, client_user_constraints={}, in_args=True)
def get_organisation_containers_report_xlsx(organisation_id, employee_id):
if request.method == 'GET':
recipient = request.args.get('recipient')
report_str_io = ExcelReportsManager.get_organisation_containers_report(organisation_id, employee_id, recipient == 'up')
return flask.jsonify(**report_str_io), 200
Когда я использую маршрут к этому API, я получаю ошибку
TypeError: get_organisation_containers_report_xlsx() got multiple values for argument 'organisation_id'
Существует путь, который ведет к API:
http://localhost:5000/reports/xlsx/organisations/1/?employee_id=2
Что я делаю не так?