Commit 529c9486 authored by 张彦钊's avatar 张彦钊

增加尾号5或6点击率统计

parent faf52419
......@@ -29,7 +29,7 @@ def get_data():
def ctr_all():
db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_prod')
cursor = db.cursor()
sql_active = "select count(distinct device_id) from data_feed_exposure where (cid_type = 'diary' or cid_type = 'diary_video') " \
sql_active = "select distinct device_id from data_feed_exposure where (cid_type = 'diary' or cid_type = 'diary_video') " \
"and device_id regexp'[5|6]$' and stat_date = '{}';".format(date)
cursor.execute(sql_active)
tail56 = cursor.fetchone()[0]
......
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