aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/tracking/db/record.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 10:12:01 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 10:12:01 +0300
commit129cc8e6e916533ff51a5d65721cf904542a1c27 (patch)
tree67c85c362b756ffcc46f509b299319959c1ff2fa /vk/tracking/db/record.py
parentfix licensing notices (diff)
downloadvk-scripts-129cc8e6e916533ff51a5d65721cf904542a1c27.tar.gz
vk-scripts-129cc8e6e916533ff51a5d65721cf904542a1c27.zip
fix Pylint warnings
Diffstat (limited to 'vk/tracking/db/record.py')
-rw-r--r--vk/tracking/db/record.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/vk/tracking/db/record.py b/vk/tracking/db/record.py
index c03c3ca..6c000ab 100644
--- a/vk/tracking/db/record.py
+++ b/vk/tracking/db/record.py
@@ -38,9 +38,9 @@ class Record(MutableMapping):
def __setitem__(self, field, value):
if field is LastSeenField.TIME:
if isinstance(value, str):
- value = Timestamp.from_string(value).dt
+ value = Timestamp.from_string(value).impl
elif isinstance(value, Timestamp):
- value = value.dt
+ value = value.impl
elif isinstance(value, datetime):
pass
else:
@@ -78,7 +78,7 @@ class Record(MutableMapping):
def _update_last_seen_field(self, last_seen, field):
if field is LastSeenField.TIME:
- last_seen[field] = self[field].dt
+ last_seen[field] = self[field].impl
else:
last_seen[field] = self[field]