Skip to content

Commit

Permalink
Fixed issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen van der Heijden committed May 29, 2020
1 parent bf91500 commit 9dfca69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions thingsdb/model/thing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion thingsdb/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.6.1'
__version__ = '0.6.2'

0 comments on commit 9dfca69

Please sign in to comment.