jc_show 日志拆分脚本
This commit is contained in:
parent
be04445150
commit
4c3d8f5b8d
@ -60,6 +60,7 @@ class JcShowInit:
|
||||
tga_data['date'] = self.time
|
||||
tga_data['channelid'] = self.channelid
|
||||
tga_data['location'] = data['location']
|
||||
tga_data['show_time'] = data['show_time']
|
||||
self.tga.put_event_data(tga_data, f'rep_{self.event_type}')
|
||||
except Exception:
|
||||
log.error(f"write 2 tga failed!,context={data}", exc_info=True)
|
||||
@ -73,7 +74,7 @@ class JcShowInit:
|
||||
temp = {}
|
||||
temp['account_id'] = account
|
||||
temp['location'] = data_dict['pos']
|
||||
temp['ad_show'] = show_time
|
||||
temp['show_time'] = show_time
|
||||
print(f"{temp}")
|
||||
if data_dict['ad_channel']:
|
||||
for ad_channel in data_dict['ad_channel']:
|
||||
@ -91,7 +92,7 @@ class JcShowInit:
|
||||
temp = {}
|
||||
temp['account_id'] = account
|
||||
temp['location'] = data_dict['pos']
|
||||
temp['ad_show'] = show_time
|
||||
temp['show_time'] = show_time
|
||||
if data_dict['ad_channel']:
|
||||
for ad_channel in data_dict['ad_channel']:
|
||||
temp['ad_channel'] = ad_channel
|
||||
|
Loading…
x
Reference in New Issue
Block a user