@@ -69,7 +69,7 @@ def get_identity_or_auth(config):
69
69
return identity
70
70
71
71
72
- def get_document_worker (config , permitted_resources , template , args , format ):
72
+ def get_document_worker (config , permitted_resources , tenant , template , args , format ):
73
73
result = None
74
74
75
75
try :
@@ -87,7 +87,7 @@ def get_document_worker(config, permitted_resources, template, args, format):
87
87
jpype .java .lang .System .setErr (jpype .java .io .PrintStream (jpype .java .io .File (os .path .join (tmpdir , "stderr" ))))
88
88
89
89
report_compiler = ReportCompiler (app .logger )
90
- result = report_compiler .get_document (config , permitted_resources , template , dict (request .args ), format )
90
+ result = report_compiler .get_document (config , permitted_resources , tenant , template , dict (request .args ), format )
91
91
92
92
except Exception as e :
93
93
app .logger .debug (str (e ))
@@ -142,7 +142,7 @@ def get(self, template):
142
142
format = 'pdf'
143
143
144
144
with multiprocessing .Pool (1 ) as pool :
145
- result = pool .apply (get_document_worker , args = (config , permitted_resources , template , dict (request .args ), format ))
145
+ result = pool .apply (get_document_worker , args = (config , permitted_resources , tenant , template , dict (request .args ), format ))
146
146
147
147
return result
148
148
0 commit comments