aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/online_sessions.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/online_sessions.py')
-rw-r--r--bin/online_sessions.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/online_sessions.py b/bin/online_sessions.py
index f5707c0..c291fc5 100644
--- a/bin/online_sessions.py
+++ b/bin/online_sessions.py
@@ -15,7 +15,7 @@ from vk.tracking.db import Format as DatabaseFormat
from vk.user import UserField
from .utils.bar_chart import BarChartBuilder
-from .utils import output
+from .utils import io
class GroupBy(Enum):
USER = 'user'
@@ -70,7 +70,7 @@ class OutputConverterCSV:
class OutputSinkCSV(OutputSinkOnlineSessions):
def __init__(self, fd=sys.stdout):
- self._writer = output.FileWriterCSV(fd)
+ self._writer = io.FileWriterCSV(fd)
_CONVERT_KEY = {
GroupBy.USER: OutputConverterCSV.convert_user,
@@ -127,7 +127,7 @@ class OutputConverterJSON:
class OutputSinkJSON(OutputSinkOnlineSessions):
def __init__(self, fd=sys.stdout):
- self._writer = output.FileWriterJSON(fd)
+ self._writer = io.FileWriterJSON(fd)
_DURATION_FIELD = 'duration'
@@ -257,9 +257,9 @@ class OutputFormat(Enum):
def open_file(self, path=None):
if self is OutputFormat.PLOT:
- return output.open_output_binary_file(path)
+ return io.open_output_binary_file(path)
else:
- return output.open_output_text_file(path)
+ return io.open_output_text_file(path)
def _parse_group_by(s):
try: