Commit d17ff0fb authored by litaolemo's avatar litaolemo

update

parent 60424f4a
......@@ -31,7 +31,7 @@ def get_user_event_from_mysql(keyword,timestamp=None):
else:
tomorrow_timestamp = timestamp + 86400
sql_str = """select cl_id, from_unixtime(log_time) as date, event_cn, projects from kafka_tag3_log
where cl_id = '%s' and log_time < %s and long_time > %s""" % (keyword,str(tomorrow_timestamp),str(timestamp))
where cl_id = '%s' and log_time < %s and log_time > %s""" % (keyword,str(tomorrow_timestamp),str(timestamp))
sql_result = con_sql(sql_str)
for data in sql_result:
clid, date, event_cn, projects = data
......
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