[FIX] report_xlsx: add token in report_download() controller

This commit is contained in:
Alexis de Lattre
2022-12-14 13:10:59 +00:00
committed by tien-ld
parent 0372766c82
commit 46a8800bd6

View File

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