Commit bf1ce5a9 authored by 张彦钊's avatar 张彦钊

修改ctr文件中的数据库

parent b09b7f2d
......@@ -28,7 +28,7 @@ def get_ctr(user_tuple):
where stat_date='{}' \
and cid_type='{}' \
and device_id in {}".format(stat_date, cid_type, user_tuple)
db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_test')
db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_prod')
cursor = db.cursor()
print("开始获取")
cursor.execute(sql)
......@@ -53,7 +53,7 @@ def get_tail6():
pre_list = tuple(eval(df.loc[0,"list"]))
print(len(pre_list))
print(pre_list[:2])
db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_test')
db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_prod')
sql = "select distinct device_id from data_feed_click \
where stat_date='{}' \
and cid_type='{}' \
......
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