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
df30c6f0
Commit
df30c6f0
authored
Feb 26, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add printer
parent
bb2816d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
dist_update_user_portrait_service.py
eda/smart_rank/dist_update_user_portrait_service.py
+6
-3
No files found.
eda/smart_rank/dist_update_user_portrait_service.py
View file @
df30c6f0
...
...
@@ -117,20 +117,19 @@ def get_user_service_portrait(cl_id, all_word_tags, all_tag_tag_type, all_3tag_2
if
__name__
==
'__main__'
:
try
:
print
(
"!!!!!!!!!!!!!!!!!!!!!!!"
)
db_jerry_test
=
pymysql
.
connect
(
host
=
'172.16.40.170'
,
port
=
4000
,
user
=
'st_user'
,
passwd
=
'aqpuBLYzEV7tML5RPsN1pntUzFy'
,
db
=
'jerry_test'
,
charset
=
'utf8'
)
cur_jerry_test
=
db_jerry_test
.
cursor
()
print
(
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
)
# 获取最近30天内的用户设备id
sql_device_ids
=
"select distinct cl_id from user_new_tag_log "
\
"where time > UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 30 day))"
cur_jerry_test
.
execute
(
sql_device_ids
)
device_ids_lst
=
[
i
[
0
]
for
i
in
cur_jerry_test
.
fetchall
()]
print
(
"!!!!!!!!!!!!!!!!!!!"
)
print
(
device_ids_lst
)
db_jerry_test
.
close
()
cur_jerry_test
.
close
()
print
(
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBb"
)
redis_client
=
redis
.
StrictRedis
.
from_url
(
'redis://:ReDis!GmTx*0aN9@172.16.40.173:6379'
)
...
...
@@ -143,6 +142,10 @@ if __name__ == '__main__':
# 标签id对应的中文名称
all_tags_name
=
get_all_tags_name
()
print
(
"!!!!!!!!!!!!!!!!!!!"
)
print
(
all_word_tags
)
print
(
all_tag_tag_type
)
print
(
all_3tag_2tag
)
# 搜索词tag
search_words_synonym_tags_key
=
"search:words:synonym:tags"
...
...
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