From c0b23699220554cb1e8cbf5340314c51458a6abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 20 Mar 2020 09:53:35 +0100 Subject: [PATCH] chg: [CSSE COVID] Publish the event immediately. --- examples/covid19/import_csse_covid19_daily.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/covid19/import_csse_covid19_daily.py b/examples/covid19/import_csse_covid19_daily.py index 7b71a1b..2f6cf16 100755 --- a/examples/covid19/import_csse_covid19_daily.py +++ b/examples/covid19/import_csse_covid19_daily.py @@ -64,7 +64,8 @@ for p in path.glob('**/*.csv'): with (Path('output') / f'{event.uuid}.json').open('w') as _w: json.dump(event.to_feed(), _w) else: - misp.add_event(event) + event = misp.add_event(event) + misp.publish(event) if make_feed: feed_meta_generator(Path('output'))