Skyscanner Optional Parameters do not seem to parse
Opened this issue · 0 comments
Example params being passed to:
from skyscanner.skyscanner import Flights
flights_service = Flights(settings.SKY_TOKEN)
flights_service.skyscanner.get_result( {'inbounddate': '', 'currency': 'INR', 'includeCarriers': u'9W', 'originplace': u'CCU-sky', 'adults': 1, 'destinationplace': u'DEL-sky', 'locale': 'en-IN', 'country': 'IN', 'outbounddate': '2018-01-13', 'market': 'IN'})
However, the results don't come filtered with includeCarriers.
In the results we get other Carriers and also the results['Query'] as such.
"Query": {
"DestinationPlace": "10957",
"CabinClass": "Economy",
"Adults": 1,
"Locale": "en-IN",
"Country": "IN",
"OutboundDate": "2018-01-13",
"Currency": "INR",
"OriginPlace": "10401",
"LocationSchema": "Default",
"Infants": 0,
"GroupPricing": false,
"Children": 0
},
We tested with the same parameters in the API Test Harness and we got proper results.