Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KWH40
fml40-reference-implementation
Commits
8685b26f
Commit
8685b26f
authored
Oct 30, 2020
by
Jiahang Chen
Browse files
fix to_json() bug
parent
75c5607f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ml/thing.py
View file @
8685b26f
...
...
@@ -525,7 +525,7 @@ def to_json(self):
self
.
dt_json
[
"attributes"
][
"features"
]
=
list
()
for
key
in
self
.
roles
.
keys
():
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
())
return
self
.
dt_json
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment