Merge branch 'master' of github.com:MISP/PyMISP

pull/328/head
Raphaël Vinot 2019-01-28 10:58:25 +01:00
commit c18981b960
1 changed files with 4 additions and 2 deletions

View File

@ -315,9 +315,11 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"results = misp.search_index(eventinfo='notebook')\n", "result = misp.search_index(eventinfo='notebook')\n",
"events = result['response']\n",
"\n", "\n",
"for event in results:\n", "print('Found ', len(events), ' events!')\n",
"for event in events:\n",
" print(event['id'], ':', event['info'])" " print(event['id'], ':', event['info'])"
] ]
}, },