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
9cce3629
Commit
9cce3629
authored
Sep 06, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm cathch
parent
a2e85997
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dist_update_portrait_market.py
eda/smart_rank/dist_update_portrait_market.py
+5
-3
No files found.
eda/smart_rank/dist_update_portrait_market.py
View file @
9cce3629
...
@@ -147,7 +147,7 @@ def compute_ai_scan(x):
...
@@ -147,7 +147,7 @@ def compute_ai_scan(x):
def
get_user_tag_score
(
cl_id
,
all_word_tags
,
size
=
10
):
def
get_user_tag_score
(
cl_id
,
all_word_tags
,
size
=
10
):
try
:
#
try:
db_jerry_test
=
pymysql
.
connect
(
host
=
'172.16.40.158'
,
port
=
4000
,
user
=
'root'
,
passwd
=
'3SYz54LS9#^9sBvC'
,
db_jerry_test
=
pymysql
.
connect
(
host
=
'172.16.40.158'
,
port
=
4000
,
user
=
'root'
,
passwd
=
'3SYz54LS9#^9sBvC'
,
db
=
'jerry_test'
,
charset
=
'utf8'
)
db
=
'jerry_test'
,
charset
=
'utf8'
)
cur_jerry_test
=
db_jerry_test
.
cursor
()
cur_jerry_test
=
db_jerry_test
.
cursor
()
...
@@ -202,8 +202,10 @@ def get_user_tag_score(cl_id, all_word_tags, size=10):
...
@@ -202,8 +202,10 @@ def get_user_tag_score(cl_id, all_word_tags, size=10):
db_jerry_test
.
commit
()
db_jerry_test
.
commit
()
db_jerry_test
.
close
()
db_jerry_test
.
close
()
return
"sucess"
return
"sucess"
except
Exception
as
e
:
else
:
return
'pass'
return
"user log is empty"
# except Exception as e:
# return 'pass'
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
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