aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/tracking/db/record.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-11 21:12:40 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-11 21:12:40 +0300
commitf53205cdf147185e7001aaf9b0d724abc14dad7f (patch)
treea924f1492c42fe9e2362e2b52cfdea03a7f5539d /vk/tracking/db/record.py
parentREADME update (diff)
downloadvk-scripts-f53205cdf147185e7001aaf9b0d724abc14dad7f.tar.gz
vk-scripts-f53205cdf147185e7001aaf9b0d724abc14dad7f.zip
revert most of the recent Pylint fixes
I know better how to name my things.
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 6c000ab..c03c3ca 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).impl
+ value = Timestamp.from_string(value).dt
elif isinstance(value, Timestamp):
- value = value.impl
+ value = value.dt
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].impl
+ last_seen[field] = self[field].dt
else:
last_seen[field] = self[field]