fix: dummy event example

Fix #598
pull/604/head
Raphaël Vinot 2020-07-16 11:30:44 +02:00
parent ec28820cf4
commit 6cd0c70679
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ def floodemail(misp, event, maxlength=25):
def create_dummy_event(misp):
return misp.new_event(0, 4, 0, 'dummy event')
event = MISPEvent()
event.info = 'Dummy event'
event = misp.add_event(event, pythonify=True)
return event
def create_massive_dummy_events(misp, nbattribute):