From 9dfca69e0991ddfa5973e08b8308d0aea972d27b Mon Sep 17 00:00:00 2001 From: Jeroen van der Heijden Date: Fri, 29 May 2020 15:01:12 +0200 Subject: [PATCH] Fixed issue #2 --- thingsdb/model/thing.py | 6 +++--- thingsdb/version.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/thingsdb/model/thing.py b/thingsdb/model/thing.py index a256614..05f3fca 100644 --- a/thingsdb/model/thing.py +++ b/thingsdb/model/thing.py @@ -129,7 +129,7 @@ def _job_add(self, pair): f'while the property is of type `{type(set_)}`') return - convert = prop.nconv if prop else self.collection._conv_thing + convert = prop.nconv if prop else self._collection._conv_thing try: set_.update((convert(item) for item in v)) except Exception as e: @@ -180,7 +180,7 @@ def _job_set(self, pairs): elif cls.__STRICT__: continue else: - convert = self.collection._conv_any + convert = self._collection._conv_any try: v = convert(v) @@ -216,7 +216,7 @@ def _job_splice(self, pair): return index, count, *items = v - convert = prop.nconv if prop else self.collection._conv_any + convert = prop.nconv if prop else self._collection._conv_any try: arr[index:index+count] = (convert(item) for item in items) except (TypeError, ValueError) as e: diff --git a/thingsdb/version.py b/thingsdb/version.py index 8411e55..aece342 100644 --- a/thingsdb/version.py +++ b/thingsdb/version.py @@ -1 +1 @@ -__version__ = '0.6.1' +__version__ = '0.6.2'