This commit is contained in:
root 2019-08-12 16:18:39 +08:00
parent e1612fe8d5
commit a2fd4a59d4
13 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -262,7 +262,8 @@ class GetFromTga:
temp['adv_id_state']=int(temp['adv_id_state'])
temp['ad_type'] = ad_types[temp.get('ad_type_id')]
temp['ad_status'] = adv_id_state[temp.get('adv_id_state')]
if temp['activity_id'] == 101:
print(f"1 {temp}")
if temp['ad_type_id'] == 101:
temp['area_name'] = area_name[temp.get('activity_id_str')]
self.write_tga_files(temp)
except Exception:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -48,6 +48,6 @@ if __name__ == "__main__":
times = sys.argv[1]
except:
times = (datetime.date.today() - datetime.timedelta(days=1)).strftime('%Y-%m-%d')
for line in config.event_list:
for line in event_list:
cc = CollectGameData(times)
cc.workflow(line)