chg: [CSSE COVID] Publish the event immediately.

pull/562/head
Raphaël Vinot 2020-03-20 09:53:35 +01:00
parent 3136b44204
commit c0b2369922
1 changed files with 2 additions and 1 deletions

View File

@ -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'))