Skip to content
Snippets Groups Projects
Commit 580dbfa7 authored by Jiahang Chen's avatar Jiahang Chen
Browse files

fix subthing id

parent dc576c61
No related branches found
No related tags found
No related merge requests found
Pipeline #439652 passed
......@@ -610,8 +610,6 @@ def _getValue(self, source, uri_list):
# ??? What if the uri points to a Value object?
# Shouldn't it be serialized?!
print(source)
print(uri_list)
value = source[uri_list[0]]
if uri_list.__len__() == 1:
# if is ditto-feature
......@@ -969,6 +967,7 @@ def to_subthing_json(self):
if self.thing_id:
json_out["identifier"] = self.thing_id
else:
if self.model["attributes"].get("identifier") is not None:
json_out["identifier"] = self.model["attributes"]["identifier"]
for key in self.roles.keys():
json_out["roles"].append(self.roles[key].to_json())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment