diff --git a/jc_show_rewrite.py b/jc_show_rewrite.py index 41c3e7a..9bb2623 100644 --- a/jc_show_rewrite.py +++ b/jc_show_rewrite.py @@ -32,6 +32,7 @@ class JcShowInit: def get_data(self): sql = f"""SELECT "#account_id", + "#server_time", button_param FROM v_event_{self.suffix} @@ -67,11 +68,12 @@ class JcShowInit: """6001_1004_oQmL74ij2oq3SyvO6QriuD0EJSjE {"ad_id":["1039","1035","1037","1036","1038","1040"],"pos":"1,0,5,0,0","ad_channel":["wxdb103a128e118619","wxf4b70c770560c2fe","wx7d84fae7fe8796d7","wx1dd2f605f4f8496b","wx2f6ebc0586e24d61","wx0e14c9f4c4a06870"]}""" for line in data: - account, data_all = line + account, show_time, data_all = line data_dict = json.loads(data_all) temp = {} temp['account_id'] = account temp['location'] = data_dict['pos'] + temp['show_time'] = show_time if data_dict['ad_channel']: for ad_channel in data_dict['ad_channel']: temp['ad_channel'] = ad_channel