summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-05-25 00:22:23 +0200
committerAki <please@ignore.pl>2022-05-25 00:22:23 +0200
commit52d5db22a14974f7dc63d2ea68b4e65164953f07 (patch)
tree908bd048ef1093874e4bcab6165d5d5862f7416f
parentf0c5c468c75a780bed55fabd91e8b153e27bf804 (diff)
downloadsalvager-52d5db22a14974f7dc63d2ea68b4e65164953f07.zip
salvager-52d5db22a14974f7dc63d2ea68b4e65164953f07.tar.gz
salvager-52d5db22a14974f7dc63d2ea68b4e65164953f07.tar.bz2
Changed to use same member name for killmail id as ESI odes
-rw-r--r--scrap.py6
1 files 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']