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
99f0d79b
Commit
99f0d79b
authored
Dec 04, 2020
by
赵杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
06e8e12c
6cb21692
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
monthReportV2.html
app/templates/v2/monthReportV2.html
+1
-1
jinjia2html.py
app/utils/jinjia2html.py
+5
-4
No files found.
app/templates/v2/monthReportV2.html
View file @
99f0d79b
...
@@ -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>
...
...
app/utils/jinjia2html.py
View file @
99f0d79b
...
@@ -171,6 +171,7 @@ class DataIntegrate:
...
@@ -171,6 +171,7 @@ class DataIntegrate:
'year_month'
:
'2020年10月'
,
'ifa_company'
:
'飞度工作室'
,
'year_month'
:
'2020年10月'
,
'ifa_company'
:
'飞度工作室'
,
'title'
:
'10月综述'
,
'brand_name'
:
'飞度工作室'
,
'title'
:
'10月综述'
,
'brand_name'
:
'飞度工作室'
,
'customer_old'
:
42
,
'customer_level'
:
'平衡型'
,
'customer_old'
:
42
,
'customer_level'
:
'平衡型'
,
'new_evaluation'
:
self
.
new_evaluation
,
'position_years'
:
'5年'
,
'planned_allocation_amount'
:
2000.00
,
'position_years'
:
'5年'
,
'planned_allocation_amount'
:
2000.00
,
'now_allocation_amount'
:
self
.
total_cost
,
'now_yield'
:
self
.
now_yield
,
'index_yield'
:
self
.
index_yield
,
'now_allocation_amount'
:
self
.
total_cost
,
'now_yield'
:
self
.
now_yield
,
'index_yield'
:
self
.
index_yield
,
'expected_yield'
:
20
,
'expected_yield'
:
20
,
...
@@ -218,10 +219,10 @@ class DataIntegrate:
...
@@ -218,10 +219,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()))
...
...
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