Skip to content

Commit

Permalink
Merge 47729c4 into 582dda0
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Borges committed Apr 26, 2019
2 parents 582dda0 + 47729c4 commit 7e4be0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/tutorial/PyMISP_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,10 @@
"# And the to_ids flag is set\n",
"attributes = misp.search(controller='attributes', type_attribute='ip-src', to_ids=0, pythonify=True)\n",
"\n",
"# Collect all event_id matching the searched attribute\n",
"event_ids = set()\n",
"for attr in attributes:\n",
" event_ids.add(event_id)\n",
" event_ids.add(attr.event_id)\n",
"\n",
"# Fetch all related events\n",
"for event_id in event_ids:\n",
Expand Down

0 comments on commit 7e4be0f

Please sign in to comment.