Commit 8685b26f authored by Jiahang Chen's avatar Jiahang Chen
Browse files

fix to_json() bug

parent 75c5607f
...@@ -525,7 +525,7 @@ def to_json(self): ...@@ -525,7 +525,7 @@ def to_json(self):
self.dt_json["attributes"]["features"] = list() self.dt_json["attributes"]["features"] = list()
for key in self.roles.keys(): for key in self.roles.keys():
self.dt_json["attributes"]["roles"].append(self.roles[key].to_json()) self.dt_json["attributes"]["roles"].append(self.roles[key].to_json())
for key in self.features: for key in self.features.keys():
self.dt_json["attributes"]["features"].append(self.features[key].to_json()) self.dt_json["attributes"]["features"].append(self.features[key].to_json())
return self.dt_json return self.dt_json
......
Supports Markdown
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