From b6bf285268aa3d154c1620a2016e03cdca040abf Mon Sep 17 00:00:00 2001 From: Jacob Casper Date: Sun, 8 Aug 2021 19:56:35 -0500 Subject: [PATCH] PSV on stdout --- main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.py b/main.py index 64c2d69..e5a170b 100755 --- a/main.py +++ b/main.py @@ -69,14 +69,11 @@ query = gql( } ''' ) -found_ids = {} for code in reports: - print(code) result = client.execute(query, variable_values={"code": code}) for kill_rank in result['reportData']['report']['rankings']['data']: tanks = kill_rank['roles']['tanks']['characters'] healers = kill_rank['roles']['healers']['characters'] dps = kill_rank['roles']['dps']['characters'] - report_code = result['reportData']['report']['code'] pull = kill_rank['fightID'] - found_ids[(report_code, pull)] = [char['id'] for char in tanks] + [char['id'] for char in healers] + [char['id'] for char in dps] + print(code,pull,','.join([str(char['id']) for char in tanks] + [str(char['id']) for char in healers] + [str(char['id']) for char in dps]), sep="|") -- 2.20.1