From b4f226ffce81695c2e844a32122db70748a3728d Mon Sep 17 00:00:00 2001 From: Jacob Casper Date: Sun, 8 Aug 2021 19:55:58 -0500 Subject: [PATCH] Set comprehension / Unique report codes --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 372bd10..64c2d69 100755 --- a/main.py +++ b/main.py @@ -53,7 +53,7 @@ params = { } result = client.execute(query, variable_values=params) encounter_ranks = [result['characterData']['character'][encounter_alias] for encounter_alias in encounter_aliases] -reports = [rank['report']['code'] for encounter in encounter_ranks for rank in encounter['ranks']] +reports = {rank['report']['code'] for encounter in encounter_ranks for rank in encounter['ranks']} query = gql( ''' query ($code: String!) { -- 2.20.1