From 9807fbe694a35cd0b773864cf09a20a9f7ff3fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 10 Jan 2019 12:03:22 +0100 Subject: [PATCH] chg: Adapt call to ipasn mass_query to the new format --- bgpranking/dbinsert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpranking/dbinsert.py b/bgpranking/dbinsert.py index 9b96806..3410f9c 100644 --- a/bgpranking/dbinsert.py +++ b/bgpranking/dbinsert.py @@ -61,7 +61,7 @@ class DatabaseInsert(): if not data: self.logger.warning(f'No data for UUID {uuid}. This should not happen, but lets move on.') continue - routing_info = responses['responses'][i][0] # our queries are on one single date, not a range + routing_info = responses['responses'][i]['response'] # our queries are on one single date, not a range # Data gathered from IPASN History: # * IP Block of the IP # * AS number