mirror of https://github.com/MISP/PyMISP
chg: [CSSE COVID] Publish the event immediately.
parent
3136b44204
commit
c0b2369922
|
@ -64,7 +64,8 @@ for p in path.glob('**/*.csv'):
|
||||||
with (Path('output') / f'{event.uuid}.json').open('w') as _w:
|
with (Path('output') / f'{event.uuid}.json').open('w') as _w:
|
||||||
json.dump(event.to_feed(), _w)
|
json.dump(event.to_feed(), _w)
|
||||||
else:
|
else:
|
||||||
misp.add_event(event)
|
event = misp.add_event(event)
|
||||||
|
misp.publish(event)
|
||||||
|
|
||||||
if make_feed:
|
if make_feed:
|
||||||
feed_meta_generator(Path('output'))
|
feed_meta_generator(Path('output'))
|
||||||
|
|
Loading…
Reference in New Issue