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
1d2244ab
Commit
1d2244ab
authored
4 years ago
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
类型转换
parent
f86268a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
config.yaml
app/config/config.yaml
+1
-0
format_transfer.py
app/utils/format_transfer.py
+4
-0
jinjia2html_v2.py
app/utils/jinjia2html_v2.py
+1
-2
No files found.
app/config/config.yaml
View file @
1d2244ab
...
...
@@ -33,6 +33,7 @@ test:
tamp_user_db
:
tamp_user
tamp_fund_db
:
tamp_fund
tamp_diagnose_app_db
:
tamp_diagnose_app
# host: 118.190.63.109
host
:
tools.caixiaoquan.com
port
:
3306
user
:
root
...
...
This diff is collapsed.
Click to expand it.
app/utils/format_transfer.py
View file @
1d2244ab
...
...
@@ -17,6 +17,10 @@ class npEncoder(json.JSONEncoder):
return
obj
.
tolist
()
elif
isinstance
(
obj
,
decimal
.
Decimal
):
return
obj
.
__str__
()
elif
isinstance
(
obj
,
np
.
int64
):
return
int
(
obj
)
elif
isinstance
(
obj
,
np
.
float64
):
return
float
(
obj
)
return
json
.
JSONEncoder
.
default
(
self
,
obj
)
def
img_transfer
(
url
):
...
...
This diff is collapsed.
Click to expand it.
app/utils/jinjia2html_v2.py
View file @
1d2244ab
...
...
@@ -312,6 +312,5 @@ if __name__ == '__main__':
start
=
time
.
time
()
dt
=
DataIntegrate
(
ifa_id
=
'USER_INFO15917850824287'
,
customer_id
=
'6716613802534121472'
,
type
=
1
)
data
=
dt
.
get_template_data
()
print
(
data
)
# dt.render_data()
dt
.
render_data
()
print
(
'耗时{}秒'
.
format
(
round
(
time
.
time
()
-
start
,
2
)))
This diff is collapsed.
Click to expand it.
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