aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/tracking/db/backend
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-03 22:09:09 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-03 22:11:53 +0300
commite5459ab1c8fb4250f30c4663aa797e6f1de22ab3 (patch)
treed7c27133aad96c285adb3f53b41d5a3256f43c31 /vk/tracking/db/backend
parentpylint: unignore "duplicate code" warnings (diff)
downloadvk-scripts-e5459ab1c8fb4250f30c4663aa797e6f1de22ab3.tar.gz
vk-scripts-e5459ab1c8fb4250f30c4663aa797e6f1de22ab3.zip
vk.tracking: merge db.io to utils.io
Diffstat (limited to 'vk/tracking/db/backend')
-rw-r--r--vk/tracking/db/backend/csv.py5
1 files changed, 3 insertions, 2 deletions
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)