def _update(self, info=None, in_watchlist=None, **kwargs): if not info: return update_attributes( self, info, [ # Extended Info 'overview', # Search 'score' ]) if 'images' in info: self.images = info['images'] # Set timestamps if 'listed_at' in info: self.listed_at = from_iso8601_datetime(info.get('listed_at')) # Set flags if in_watchlist is not None: self.in_watchlist = in_watchlist self.rating = Rating._construct(self._client, info) or self.rating
def _update(self, info=None, in_watchlist=None, **kwargs): if not info: return update_attributes(self, info, [ 'overview', 'images', 'score' ]) # Set timestamps if 'listed_at' in info: self.listed_at = from_iso8601(info.get('listed_at')) # Set flags if in_watchlist is not None: self.in_watchlist = in_watchlist self.rating = Rating._construct(self._client, info) or self.rating