Fix again IPASN module

pull/17/head
Raphaël Vinot 2016-05-04 12:52:01 +02:00
parent 789c8a25f3
commit 5eac88673c
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ def handler(q=False):
ipasn = IPASN(host=request['config'].get('host'),
port=request['config'].get('port'), db=request['config'].get('db'))
values = ' \n '.join([' '.join(r)for r in ipasn.aggregate_history(toquery)])
values = ['{} {} {} {}'.format(*r) for r in ipasn.aggregate_history(toquery)]
if not values:
misperrors['error'] = 'Unable to find the history of this IP'
return misperrors