Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
a0613530
Commit
a0613530
authored
Jan 29, 2021
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update user_portrait_db
parent
e6eb5f85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
tool.py
eda/smart_rank/tool.py
+11
-1
No files found.
eda/smart_rank/tool.py
View file @
a0613530
...
...
@@ -420,6 +420,16 @@ def get_jerry_test():
return
db
,
db
.
cursor
()
def
get_doris_olap
():
db
=
pymysql
.
connect
(
host
=
"172.16.50.175"
,
port
=
3306
,
user
=
"doris"
,
passwd
=
"o5gbA27hXHHm"
,
db
=
"doris_olap"
,
charset
=
"utf8"
)
return
db
,
db
.
cursor
()
def
get_doris_prod
():
db
=
pymysql
.
connect
(
host
=
"172.16.30.136"
,
port
=
3306
,
user
=
"doris"
,
passwd
=
"o5gbA27hXHHm"
,
db
=
"doris_prod"
,
charset
=
"utf8"
)
return
db
,
db
.
cursor
()
...
...
@@ -529,7 +539,7 @@ def write_user_portrait(cl_id, first_solutions, second_solutions, first_demands,
yesterday
,
cl_id
,
first_solutions
,
second_solutions
,
first_demands
,
second_demands
,
first_positions
,
second_positions
,
projects
,
business_tags
,
selected_stars
,
selected_internet_celebrity
)
db
,
cursor
=
get_
jerry_test
()
db
,
cursor
=
get_
doris_olap
()
cursor
.
execute
(
sql
)
db
.
commit
()
db
.
close
()
...
...
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