Skip to content

Commit 9dfca69

Browse files
author
Jeroen van der Heijden
committed
Fixed issue #2
1 parent bf91500 commit 9dfca69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

thingsdb/model/thing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _job_add(self, pair):
129129
f'while the property is of type `{type(set_)}`')
130130
return
131131

132-
convert = prop.nconv if prop else self.collection._conv_thing
132+
convert = prop.nconv if prop else self._collection._conv_thing
133133
try:
134134
set_.update((convert(item) for item in v))
135135
except Exception as e:
@@ -180,7 +180,7 @@ def _job_set(self, pairs):
180180
elif cls.__STRICT__:
181181
continue
182182
else:
183-
convert = self.collection._conv_any
183+
convert = self._collection._conv_any
184184

185185
try:
186186
v = convert(v)
@@ -216,7 +216,7 @@ def _job_splice(self, pair):
216216
return
217217

218218
index, count, *items = v
219-
convert = prop.nconv if prop else self.collection._conv_any
219+
convert = prop.nconv if prop else self._collection._conv_any
220220
try:
221221
arr[index:index+count] = (convert(item) for item in items)
222222
except (TypeError, ValueError) as e:

thingsdb/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.6.1'
1+
__version__ = '0.6.2'

0 commit comments

Comments
 (0)