Commit a7562000 authored by 赵威's avatar 赵威

update db

parent bccc034d
......@@ -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 60 day))"
sql = "select distinct cl_id from kafka_tag3_log where log_time > UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 30 day))"
db, cursor = get_doris_prod()
cursor.execute(sql)
device_ids_lst = [i[0] for i in cursor.fetchall()]
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment