aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/tracking/db/backend
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-19 01:36:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-19 01:36:19 +0300
commitdd88c8103e13f108a0fed51a82221fdf60f6a188 (patch)
tree14c0038cd71f9e4a8208278b4e9b5f67e1a91c47 /vk/tracking/db/backend
parentremove commented out code (diff)
downloadvk-scripts-dd88c8103e13f108a0fed51a82221fdf60f6a188.tar.gz
vk-scripts-dd88c8103e13f108a0fed51a82221fdf60f6a188.zip
add Pylint configuration & fix the warnings
Diffstat (limited to 'vk/tracking/db/backend')
-rw-r--r--vk/tracking/db/backend/__init__.py4
-rw-r--r--vk/tracking/db/backend/log.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/vk/tracking/db/backend/__init__.py b/vk/tracking/db/backend/__init__.py
index 4b3c278..68de924 100644
--- a/vk/tracking/db/backend/__init__.py
+++ b/vk/tracking/db/backend/__init__.py
@@ -2,4 +2,6 @@
# This file is licensed under the terms of the MIT License.
# See LICENSE.txt for details.
-__all__ = 'csv', 'log', 'null'
+from . import csv, log, null
+
+__all__ = 'csv', 'log', 'null',
diff --git a/vk/tracking/db/backend/log.py b/vk/tracking/db/backend/log.py
index 625257b..03548eb 100644
--- a/vk/tracking/db/backend/log.py
+++ b/vk/tracking/db/backend/log.py
@@ -64,7 +64,7 @@ class Writer:
return '{} was last seen at {} using {}.'.format(
Writer._format_user(user),
user.get_last_seen_time_local(),
- user.get_last_seen_platform().get_description_for_sentence())
+ user.get_last_seen_platform().get_descr_text())
@staticmethod
def _format_user_went_online(user):