Commit 420a1620 authored by litaolemo's avatar litaolemo

update

parent 7fd3662a
...@@ -89,7 +89,7 @@ device_df.show(1, False) ...@@ -89,7 +89,7 @@ device_df.show(1, False)
sql_res = device_df.collect() sql_res = device_df.collect()
print("-----------------------------------------------------------------------------") print("-----------------------------------------------------------------------------")
for res in sql_res: for res in sql_res:
print(res) # print(res)
day_id = res.day_id day_id = res.day_id
device_os_type = res.device_os_type device_os_type = res.device_os_type
active_type = res.active_type active_type = res.active_type
...@@ -104,6 +104,8 @@ for res in sql_res: ...@@ -104,6 +104,8 @@ for res in sql_res:
recommend_welfare_card = res.recommend_welfare_card recommend_welfare_card = res.recommend_welfare_card
recommend_content_card = res.recommend_content_card recommend_content_card = res.recommend_content_card
if not recommend_content_card:
recommend_content_card = 0
recommend_special_card = res.recommend_special_card recommend_special_card = res.recommend_special_card
transfer_card = res.transfer_card transfer_card = res.transfer_card
video_consultation = res.video_consultation video_consultation = res.video_consultation
......
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