Commit 7b2674fa authored by lixiaofang's avatar lixiaofang

cookies

parent a4153154
This diff is collapsed.
......@@ -111,7 +111,7 @@ def get_data(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
cursor = db.cursor()
cursor.execute("select user_id from account_user_auth where user_id not in (select user_id from pv_maidian where page_name='home' and partiton_date >='%s'"%(numtime))
cursor.execute("select user_id from account_user_auth where user_id not in (select user_id from pv_maidian where page_name='home' and partiton_date >= %s " %(numtime))
data = cursor.fetchall()
user_id = list(data)
logging.info("Database version : %s " % user_id)
......
......@@ -99,7 +99,7 @@ def get_data(numtime):
db = pymysql.connect(host="rm-2ze5k2we69904787l.mysql.rds.aliyuncs.com", user='work', passwd='Gengmei123',
db="alpha", port=3306)
cursor = db.cursor()
cursor.execute("select user_id from account_user_auth where user_id not in (select user_id from pv_maidian where page_name='home' and partiton_date >='%s'"%(numtime))
cursor.execute("select user_id from account_user_auth where user_id not in (select user_id from pv_maidian where page_name='home' and partiton_date >= %s " %(numtime))
data = cursor.fetchall()
user_id = list(data)
logging.info("Database version : %s " % user_id)
......
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