1、累计用户添加ad_channel为空的数据 2、新增用户统计脚本

This commit is contained in:
pengtao 2019-09-02 20:34:14 +08:00
parent 69b533305b
commit 634d3654da

View File

@ -42,7 +42,7 @@ class InitFirstAD():
temp = {}
temp['gameid'] = self.gameid
temp['channelid'] = self.channelid
temp['accountid'], temp['register_time'] = line
temp['accountid'], temp['register_time'], temp['ad_channel'] = line
self.mysql.insert(table_name, temp)
except Exception:
log.error(f"insert {line} to mysql Failed !", exc_info=True)
@ -62,7 +62,8 @@ class InitFirstAD():
rdata = []
sql = f"""SELECT
"#account_id",
account_register_time
account_register_time,
first_ad_channel
FROM
v_user_{self.suffix}
where