From 52d5db22a14974f7dc63d2ea68b4e65164953f07 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 25 May 2022 00:22:23 +0200 Subject: Changed to use same member name for killmail id as ESI odes --- scrap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrap.py b/scrap.py index 29c77ab..dc10eb5 100644 --- a/scrap.py +++ b/scrap.py @@ -74,7 +74,7 @@ def get_related_kills(url): killmails = [] teams = (set(), set()) for kill, team, victim in related.kills: - killmails.append({'id': int(kill)}) + killmails.append({'killmail_id': int(kill)}) destination = teams[team - 1] destination.add(int(victim)) return {'killmails': killmails, 'teams': list(map(list, teams))} @@ -86,7 +86,7 @@ def expand_hashes(snapshot): """ for killmail in snapshot['killmails']: time.sleep(1.05) # Zkillboard is very sensitive. - killmail['hash'] = get_hash(killmail['id']) + killmail['hash'] = get_hash(killmail['killmail_id']) return snapshot @@ -106,7 +106,7 @@ def expand_details(snapshot): full information on attackers is not important in context of the visualizations. """ for killmail in snapshot['killmails']: - details = get_details(killmail['id'], killmail['hash']) + details = get_details(killmail['killmail_id'], killmail['hash']) del details['attackers'] del details['victim']['items'] del details['victim']['damage_taken'] -- cgit v1.1