diff --git a/report_xlsx/controllers/main.py b/report_xlsx/controllers/main.py index 0b424f1ec..9b9eff5e3 100644 --- a/report_xlsx/controllers/main.py +++ b/report_xlsx/controllers/main.py @@ -49,7 +49,7 @@ class ReportController(ReportController): return super().report_routes(reportname, docids, converter, **data) @route() - def report_download(self, data, context=None): + def report_download(self, data, context=None, token=None): requestcontent = json.loads(data) url, report_type = requestcontent[0], requestcontent[1] try: @@ -96,7 +96,7 @@ class ReportController(ReportController): ) return response else: - return super().report_download(data, context) + return super().report_download(data, context=context, token=token) except Exception as e: _logger.exception("Error while generating report %s", reportname) se = _serialize_exception(e)