From ee886218064cf57ddfc7100cf8c70fe37e7f43cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Gru=CC=88ndger?= Date: Wed, 24 Oct 2018 20:03:29 +0200 Subject: [PATCH] Flush da stuff --- ogn/commands/bulkimport.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ogn/commands/bulkimport.py b/ogn/commands/bulkimport.py index 235ee76..46d0162 100644 --- a/ogn/commands/bulkimport.py +++ b/ogn/commands/bulkimport.py @@ -78,6 +78,7 @@ def convert(sourcefile, path=''): if int(1000 * current_line / total_lines) != progress: progress = round(1000 * current_line / total_lines) print("\rReading line {} ({}%)".format(current_line, progress / 10), end='') + saver.flush() message = string_to_message(line.strip(), reference_date=reference_date) if message is None: