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
bb34008d
Commit
bb34008d
authored
Feb 26, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add printer
parent
e3c74a82
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
dist_update_user_portrait.py
eda/smart_rank/dist_update_user_portrait.py
+3
-0
No files found.
eda/smart_rank/dist_update_user_portrait.py
View file @
bb34008d
...
@@ -144,9 +144,11 @@ def get_user_tag_score(cl_id, size=10):
...
@@ -144,9 +144,11 @@ def get_user_tag_score(cl_id, size=10):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
try
:
try
:
print
(
"!!!!!!!!!!!!!!!!!!!!!!!"
)
db_jerry_test
=
pymysql
.
connect
(
host
=
'172.16.40.170'
,
port
=
4000
,
user
=
'st_user'
,
passwd
=
'aqpuBLYzEV7tML5RPsN1pntUzFy'
,
db_jerry_test
=
pymysql
.
connect
(
host
=
'172.16.40.170'
,
port
=
4000
,
user
=
'st_user'
,
passwd
=
'aqpuBLYzEV7tML5RPsN1pntUzFy'
,
db
=
'jerry_test'
,
charset
=
'utf8'
)
db
=
'jerry_test'
,
charset
=
'utf8'
)
cur_jerry_test
=
db_jerry_test
.
cursor
()
cur_jerry_test
=
db_jerry_test
.
cursor
()
print
(
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
)
# 获取所有用户的设备id
# 获取所有用户的设备id
# sql_device_ids = "select distinct cl_id from user_new_tag_log"
# sql_device_ids = "select distinct cl_id from user_new_tag_log"
...
@@ -155,6 +157,7 @@ if __name__ == '__main__':
...
@@ -155,6 +157,7 @@ if __name__ == '__main__':
"where time > UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 30 day))"
"where time > UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 30 day))"
cur_jerry_test
.
execute
(
sql_device_ids
)
cur_jerry_test
.
execute
(
sql_device_ids
)
device_ids_lst
=
[
i
[
0
]
for
i
in
cur_jerry_test
.
fetchall
()]
device_ids_lst
=
[
i
[
0
]
for
i
in
cur_jerry_test
.
fetchall
()]
print
(
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBb"
)
# 获取所有用户的行为日志
# 获取所有用户的行为日志
# sql_all_log = "select time,cl_id,score_type,tag_id,tag_referrer,action from user_new_tag_log"
# sql_all_log = "select time,cl_id,score_type,tag_id,tag_referrer,action from user_new_tag_log"
...
...
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