模版修改

parent 6848b979
...@@ -1028,7 +1028,7 @@ ...@@ -1028,7 +1028,7 @@
年化收益率:<span class="green">{{annualised_return}}%</span> 年化收益率:<span class="green">{{annualised_return}}%</span>
</td> </td>
<td> <td>
最大回撤:<span class="red">{{max_withdrawal}}%</span> 最大回撤:<span class="red">{{now_withdrawal}}%</span>
</td> </td>
<td> <td>
</td> </td>
......
...@@ -218,10 +218,10 @@ class DataIntegrate: ...@@ -218,10 +218,10 @@ class DataIntegrate:
# with open(save_file, 'w', encoding="utf-8") as f: # with open(save_file, 'w', encoding="utf-8") as f:
# f.write(monthReport_html) # f.write(monthReport_html)
# save_file = "app/html/v2/monthReportV2.html" save_file = "app/html/v2/monthReportV2.html"
# with open(save_file, 'w', encoding="utf-8") as f: with open(save_file, 'w', encoding="utf-8") as f:
# f.write(monthReport_html) f.write(monthReport_html)
html_to_pdf(monthReport_html, '/Users/pengxiong/Desktop/fund_report/app/pdf/%s.pdf' % str(uuid.uuid4())) # html_to_pdf(monthReport_html, '/Users/pengxiong/Desktop/fund_report/app/pdf/%s.pdf' % str(uuid.uuid4()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment