From 500f07283f929804f6f80b18c4771999a9455aa4 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 7 Jan 2021 22:38:09 -0800 Subject: [PATCH] Rename album jsonify key sub_albums -> children. --- etiquette/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etiquette/objects.py b/etiquette/objects.py index 854e0e5..b91aec2 100644 --- a/etiquette/objects.py +++ b/etiquette/objects.py @@ -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