change loop

pull/208/head
Sebdraven 2018-07-10 16:51:31 +02:00
parent e9747a3379
commit 26950ea7de
1 changed files with 10 additions and 9 deletions

View File

@ -277,9 +277,10 @@ def expand_history_ipv4(api, domain):
if 'records' in results:
for record in results['records']:
if 'values' in record:
for item in record['values']:
r.append(
{'type': ['domain|ip'],
'values': ['%s|%s' % (domain, record['ip'])],
'values': ['%s|%s' % (domain, item['ip'])],
'categories': ['Newtwork activity'],
'comment': 'last seen: %s first seen: %s' %
(record['last_seen'],