From e5459ab1c8fb4250f30c4663aa797e6f1de22ab3 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 3 May 2021 22:09:09 +0300 Subject: vk.tracking: merge db.io to utils.io --- vk/tracking/db/backend/csv.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vk/tracking/db/backend') diff --git a/vk/tracking/db/backend/csv.py b/vk/tracking/db/backend/csv.py index 43038e4..0503872 100644 --- a/vk/tracking/db/backend/csv.py +++ b/vk/tracking/db/backend/csv.py @@ -3,15 +3,16 @@ # For details, see https://github.com/egor-tensin/vk-scripts. # Distributed under the MIT License. +from vk.utils.io import FileReaderCSV, FileWriterCSV + from .. import meta -from ..io import FileReaderCSV, FileWriterCSV from ..record import Record from ..timestamp import Timestamp class Writer(meta.Writer): def __init__(self, fd): - self._writer = FileWriterCSV(fd) + self._writer = FileWriterCSV(fd, flush=True) def on_initial_status(self, user): self._write_record(user) -- cgit v1.2.3