Rename album jsonify key sub_albums -> children.
This commit is contained in:
parent
1ee7ada891
commit
500f07283f
1 changed files with 2 additions and 2 deletions
|
@ -523,9 +523,9 @@ class Album(ObjectBase, GroupableMixin):
|
|||
'author': self.get_author().jsonify() if self.author_id else None,
|
||||
}
|
||||
if not minimal:
|
||||
j['photos'] = [photo.jsonify(include_albums=False) for photo in self.get_photos()]
|
||||
j['parents'] = [parent.jsonify(minimal=True) for parent in self.get_parents()]
|
||||
j['sub_albums'] = [child.jsonify(minimal=True) for child in self.get_children()]
|
||||
j['children'] = [child.jsonify(minimal=True) for child in self.get_children()]
|
||||
j['photos'] = [photo.jsonify(include_albums=False) for photo in self.get_photos()]
|
||||
|
||||
return j
|
||||
|
||||
|
|
Loading…
Reference in a new issue