Skip to content

Commit

Permalink
write report in input output variable instead of default download_fil…
Browse files Browse the repository at this point in the history
…ename variable
  • Loading branch information
jatorna committed Feb 1, 2023
1 parent 99fb65b commit 6e03484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantstats/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def html(returns, benchmark=None, rf=0., grayscale=False,
_download_html(tpl, download_filename)
return

with open(download_filename, 'w', encoding='utf-8') as f:
with open(output, 'w', encoding='utf-8') as f:
f.write(tpl)


Expand Down

0 comments on commit 6e03484

Please sign in to comment.