Skip to content
Snippets Groups Projects
Commit 4b08d639 authored by Grzegorz Kuboń's avatar Grzegorz Kuboń
Browse files

fix to_dict methods for tests

parent f0a3eb91
Branches
4 merge requests!10Revert "test if load_default will download dump",!9Merge request,!8Revert "test if load_default will download dump",!7Revert "test if load_default will download dump"
Pipeline #8765 canceled with stages
in 51 seconds
...@@ -787,7 +787,11 @@ class LexicalUnit(bs.LexicalUnitBase): ...@@ -787,7 +787,11 @@ class LexicalUnit(bs.LexicalUnitBase):
u"SELECT quote(id) from tbl_lexicalunit WHERE id = ?", u"SELECT quote(id) from tbl_lexicalunit WHERE id = ?",
(self._id,), (self._id,),
) )
self._uuid = cur.fetchone()[0][2:-1] temp = cur.fetchone()[0]
if isinstance(temp, str):
self._uuid = temp[2:-1]
else:
self._uuid = temp
return self._uuid return self._uuid
@property @property
...@@ -1150,7 +1154,11 @@ class Synset(bs.SynsetBase): ...@@ -1150,7 +1154,11 @@ class Synset(bs.SynsetBase):
u"SELECT quote(id) from tbl_synset WHERE id = ?", u"SELECT quote(id) from tbl_synset WHERE id = ?",
(self._id,), (self._id,),
) )
self._uuid = cur.fetchone()[0][2:-1] temp = cur.fetchone()[0]
if isinstance(temp, str):
self._uuid = temp[2:-1]
else:
self._uuid = temp
return self._uuid return self._uuid
@property @property
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment