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
a7562000
Commit
a7562000
authored
Jul 23, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update db
parent
bccc034d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tag3_update_user_portrait_offline.py
eda/smart_rank/tag3_update_user_portrait_offline.py
+1
-1
tool.py
eda/smart_rank/tool.py
+1
-1
No files found.
eda/smart_rank/tag3_update_user_portrait_offline.py
View file @
a7562000
...
...
@@ -278,7 +278,7 @@ def update_tag3_user_portrait(cl_id):
def
consume_kafka
():
sql
=
"select distinct cl_id from kafka_tag3_log where log_time > UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL
6
0 day))"
sql
=
"select distinct cl_id from kafka_tag3_log where log_time > UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL
3
0 day))"
db
,
cursor
=
get_doris_prod
()
cursor
.
execute
(
sql
)
device_ids_lst
=
[
i
[
0
]
for
i
in
cursor
.
fetchall
()]
...
...
eda/smart_rank/tool.py
View file @
a7562000
...
...
@@ -398,7 +398,7 @@ def get_tag3_user_log(cl_id):
second_demands, first_positions, second_positions, projects
from kafka_tag3_log where cl_id = '{}'"""
.
format
(
cl_id
)
db
,
cursor
=
get_
jerry_test
()
db
,
cursor
=
get_
doris_prod
()
cursor
.
execute
(
sql
)
data
=
list
(
cursor
.
fetchall
())
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