Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
7fa267ed
Commit
7fa267ed
authored
Dec 04, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模版修改
parent
6848b979
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
monthReportV2.html
app/templates/v2/monthReportV2.html
+1
-1
jinjia2html.py
app/utils/jinjia2html.py
+4
-4
No files found.
app/templates/v2/monthReportV2.html
View file @
7fa267ed
...
...
@@ -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>
...
...
app/utils/jinjia2html.py
View file @
7fa267ed
...
...
@@ -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()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment