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

pull/819/head
Alexis de Lattre 2022-12-14 13:10:59 +00:00 committed by tien-ld
parent 0372766c82
commit 46a8800bd6
1 changed files with 2 additions and 2 deletions

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)