Commit a92c44ec authored by Jiahang Chen's avatar Jiahang Chen
Browse files

fix ditto feature bug

parent 0e013aff
Pipeline #388826 passed with stages
in 1 minute and 10 seconds
......@@ -23,7 +23,7 @@ def key(self):
def key(self, value):
self.__key = value
def json_out(self):
def to_json(self):
return {
"properties": {
self.__key: self.__value
......
......@@ -900,11 +900,13 @@ def to_json(self):
if self.features:
self.dt_json["attributes"]["features"] = list()
if self.ditto_features:
self.dt_json["features"] = self.ditto_features
self.dt_json["features"] = dict()
for key in self.roles.keys():
self.dt_json["attributes"]["roles"].append(self.roles[key].to_json())
for key in self.features.keys():
self.dt_json["attributes"]["features"].append(self.features[key].to_json())
for key in self.ditto_features.keys():
self.dt_json["features"][key] = self.ditto_features[key].to_json()
return self.dt_json
def to_subthing_json(self):
......
Markdown is supported
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