diff --git a/app/templates/v2/monthReportV2.html b/app/templates/v2/monthReportV2.html index 2d78e90bb94f986816f05f7cb8fba2342b4d126b..60ea74f089f29a7ce83bd7b0319a931c5ddf8216 100644 --- a/app/templates/v2/monthReportV2.html +++ b/app/templates/v2/monthReportV2.html @@ -1028,7 +1028,7 @@ 年化收益率:<span class="green">{{annualised_return}}%</span> </td> <td> - 最大回撤:<span class="red">{{max_withdrawal}}%</span> + 最大回撤:<span class="red">{{now_withdrawal}}%</span> </td> <td> </td> diff --git a/app/utils/jinjia2html.py b/app/utils/jinjia2html.py index 053dcd7759d16f84ad4913961593974bd20ca73d..d2c843d17d1b6c048909a0453859d448327707c2 100644 --- a/app/utils/jinjia2html.py +++ b/app/utils/jinjia2html.py @@ -218,10 +218,10 @@ class DataIntegrate: # with open(save_file, 'w', encoding="utf-8") as f: # f.write(monthReport_html) - # save_file = "app/html/v2/monthReportV2.html" - # with open(save_file, 'w', encoding="utf-8") as f: - # f.write(monthReport_html) - html_to_pdf(monthReport_html, '/Users/pengxiong/Desktop/fund_report/app/pdf/%s.pdf' % str(uuid.uuid4())) + save_file = "app/html/v2/monthReportV2.html" + with open(save_file, 'w', encoding="utf-8") as f: + f.write(monthReport_html) + # html_to_pdf(monthReport_html, '/Users/pengxiong/Desktop/fund_report/app/pdf/%s.pdf' % str(uuid.uuid4()))