diff --git a/amadeus/reference_data/locations/hotels/_by_hotels.py b/amadeus/reference_data/locations/hotels/_by_hotels.py index 07d185ab..cc9b2742 100644 --- a/amadeus/reference_data/locations/hotels/_by_hotels.py +++ b/amadeus/reference_data/locations/hotels/_by_hotels.py @@ -18,5 +18,8 @@ def get(self, **params): :rtype: amadeus.Response :raises amadeus.ResponseError: if the request could not be completed ''' + for key, value in params.items(): + if isinstance(value, list): + params[key] = ','.join(value) return self.client.get( '/v1/reference-data/locations/hotels/by-hotels', **params) diff --git a/specs/namespaces/test_namespaces.py b/specs/namespaces/test_namespaces.py index 577956d8..605ddf0c 100644 --- a/specs/namespaces/test_namespaces.py +++ b/specs/namespaces/test_namespaces.py @@ -497,9 +497,10 @@ def test_analytics_itinerary_price_metrics_get(client_setup): def test_reference_data_locations_hotels_by_hotels_get(client_setup): - client_setup.reference_data.locations.hotels.by_hotels.get(a='b') + client_setup.reference_data.locations.hotels.by_hotels.get(a='b', + c=['d', 'e']) client_setup.get.assert_called_with( - '/v1/reference-data/locations/hotels/by-hotels', a='b' + '/v1/reference-data/locations/hotels/by-hotels', a='b', c='d,e' )