fix bug
This commit is contained in:
parent
2bfda5aeb4
commit
945abb54f6
@ -32,7 +32,22 @@ class InitFirstAD():
|
||||
self.tga.init_tga_write(self.tgaid)
|
||||
|
||||
def get_ad_channel(self):
|
||||
sql =f"""select distinct ad_c"""
|
||||
sql = f"""SELECT
|
||||
DISTINCT first_ad_channel
|
||||
FROM
|
||||
v_user_{self.suffix}
|
||||
where
|
||||
gameid='{self.gameid}'"""
|
||||
temp = []
|
||||
data = self.tga.get_data(sql)
|
||||
if data:
|
||||
for line in data:
|
||||
try:
|
||||
temp.append(line[0])
|
||||
except Exception:
|
||||
log.error(f"split data {line} failed", exc_info=True)
|
||||
return temp
|
||||
|
||||
|
||||
def run(self):
|
||||
ad_channels = self.get_ad_channel()
|
||||
|
Loading…
x
Reference in New Issue
Block a user