summaryrefslogtreecommitdiffhomepage
path: root/scrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'scrap.py')
-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']