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
946057e1
Commit
946057e1
authored
Jan 22, 2021
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日期
parent
d993cc58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
jinjia2html_v2.py
app/utils/jinjia2html_v2.py
+2
-2
No files found.
app/utils/jinjia2html_v2.py
View file @
946057e1
...
@@ -265,7 +265,7 @@ class DataIntegrate:
...
@@ -265,7 +265,7 @@ class DataIntegrate:
data
=
{
data
=
{
# 全局数据
# 全局数据
'customer_name'
:
self
.
customer_name
,
'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
,
'valueSex'
:
self
.
user_customer
.
valueSex
,
'month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
m"
),
'month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
m"
),
'start_date'
:
self
.
user_customer
.
start_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
'start_date'
:
self
.
user_customer
.
start_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
...
@@ -318,7 +318,7 @@ class DataIntegrate:
...
@@ -318,7 +318,7 @@ class DataIntegrate:
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
start
=
time
.
time
()
start
=
time
.
time
()
dt
=
DataIntegrate
(
ifa_id
=
'USER_INFO15917850824287'
,
customer_id
=
'6716613802534121472'
,
type
=
1
)
dt
=
DataIntegrate
(
ifa_id
=
'USER_INFO15917850824287'
,
customer_id
=
'6716613802534121472'
,
type
=
2
)
data
=
dt
.
get_template_data
()
data
=
dt
.
get_template_data
()
dt
.
render_data
()
dt
.
render_data
()
print
(
'耗时{}秒'
.
format
(
round
(
time
.
time
()
-
start
,
2
)))
print
(
'耗时{}秒'
.
format
(
round
(
time
.
time
()
-
start
,
2
)))
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