Commit b55b3596 authored by 高雅喆's avatar 高雅喆

update

parent 63687715
...@@ -59,7 +59,7 @@ if __name__ == '__main__': ...@@ -59,7 +59,7 @@ if __name__ == '__main__':
cur_zhengxing = db_zhengxing.cursor() cur_zhengxing = db_zhengxing.cursor()
# 获取所有用户的设备id # 获取所有用户的设备id
sql_device_ids = "select distinct user_id from api_order where status=1 and pay_time>'2017-08-16'" sql_device_ids = "select distinct user_id from api_order where status=1 and pay_time>'2015-08-16'"
cur_zhengxing.execute(sql_device_ids) cur_zhengxing.execute(sql_device_ids)
device_ids_lst = [i["user_id"] for i in cur_zhengxing.fetchall()] device_ids_lst = [i["user_id"] for i in cur_zhengxing.fetchall()]
stat_date = datetime.datetime.today().strftime('%Y-%m-%d') stat_date = datetime.datetime.today().strftime('%Y-%m-%d')
......
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