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
3024b4a7
Commit
3024b4a7
authored
Jan 20, 2021
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间
parent
07123beb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
data_service_v2_1.py
app/service/data_service_v2_1.py
+1
-1
jinjia2html_v2.py
app/utils/jinjia2html_v2.py
+1
-1
No files found.
app/service/data_service_v2_1.py
View file @
3024b4a7
...
...
@@ -32,7 +32,7 @@ class UserCustomerDataAdaptor:
all_fund_distribution
=
{}
all_fund_performance
=
{}
def
__init__
(
self
,
user_id
,
customer_id
,
end_date
=
str
(
"2020-12-31"
),
index_id
=
"IN0000007M"
):
def
__init__
(
self
,
user_id
,
customer_id
,
end_date
=
str
(
datetime
.
datetime
.
now
()
.
date
()
),
index_id
=
"IN0000007M"
):
self
.
user_id
=
user_id
self
.
customer_id
=
customer_id
self
.
compare_index_id
=
index_id
...
...
app/utils/jinjia2html_v2.py
View file @
3024b4a7
...
...
@@ -223,7 +223,7 @@ class DataIntegrate:
data
=
{
# 全局数据
'customer_name'
:
self
.
customer_name
,
'year_month'
:
self
.
user_customer
.
month_start
_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
'year_month'
:
self
.
user_customer
.
end
_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
'valueSex'
:
self
.
user_customer
.
valueSex
,
'month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
m"
),
'start_date'
:
self
.
user_customer
.
start_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
...
...
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