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

forgot to rename columns names

parent d6a35a2e
...@@ -6,4 +6,5 @@ def fetch_user_profile(device_id): ...@@ -6,4 +6,5 @@ def fetch_user_profile(device_id):
sql = "select device_id,city_id from " \ sql = "select device_id,city_id from " \
"data_feed_click where device_id = '{0}' limit 1".format(device_id) "data_feed_click where device_id = '{0}' limit 1".format(device_id)
user_profile = con_sql(sql) user_profile = con_sql(sql)
return user_profile, user_profile.empty user_profile = user_profile.rename(columns={0:"device_id",1:"city_id"})
return user_profile, not user_profile.empty
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