Commit 43ffadf4 authored by 张彦钊's avatar 张彦钊

change tets

parent d5418840
...@@ -9,10 +9,11 @@ def get_esmm_users(): ...@@ -9,10 +9,11 @@ def get_esmm_users():
stat_date = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%Y-%m-%d") stat_date = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%Y-%m-%d")
print(stat_date) print(stat_date)
sql = "select distinct device_id,city_id from data_feed_exposure_precise " \ sql = "select distinct device_id,city_id from data_feed_exposure_precise " \
"where stat_date = '{}' limit 2".format(stat_date) "where stat_date = '{}' limit 20".format(stat_date)
cursor.execute(sql) cursor.execute(sql)
result = cursor.fetchall() result = list(cursor.fetchall())
print(result) print(result[:2])
return result
def get_user_profile(device_id): def get_user_profile(device_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