Array of array PhotoSize

This commit is contained in:
Alex Root Junior 2017-06-09 16:12:40 +03:00
parent a7e37797bf
commit 8d063242ac

View file

@ -17,6 +17,6 @@ class UserProfilePhotos(Deserializable):
raw_data = cls.check_json(raw_data)
total_count = raw_data.get('total_count')
photos = PhotoSize.deserialize(raw_data.get('photos'))
photos = [PhotoSize.deserialize(item) for item in raw_data.get('photos')]
return UserProfilePhotos(total_count, photos)