From 5703b9c0f3235406c507d1ab596b242c2058253e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sun, 8 May 2016 14:28:03 +0200 Subject: [PATCH] [ASN description] Fix input type --- modules/expansion/asn_history.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/expansion/asn_history.py b/modules/expansion/asn_history.py index 9f1dbc4..9775f6d 100755 --- a/modules/expansion/asn_history.py +++ b/modules/expansion/asn_history.py @@ -4,7 +4,7 @@ import json from asnhistory import ASNHistory misperrors = {'error': 'Error'} -mispattributes = {'input': ['asn'], 'output': ['freetext']} +mispattributes = {'input': ['AS'], 'output': ['freetext']} moduleinfo = {'version': '0.1', 'author': 'Raphaƫl Vinot', 'description': 'Query an ASN Description history service (https://github.com/CIRCL/ASN-Description-History.git)', 'module-type': ['expansion', 'hover']} @@ -16,8 +16,8 @@ def handler(q=False): if q is False: return False request = json.loads(q) - if request.get('asn'): - toquery = request['asn'] + if request.get('AS'): + toquery = request['AS'] else: misperrors['error'] = "Unsupported attributes type" return misperrors