Closed spyglass24 closed 2 years ago
When you are looking for flights with no return, you shouldn't pass in the API the returnDate
at all. Even if you try with None
and null
the backend still receives a returnDate
with invalid inputs, since the expected input is in format YYYY-MM-DD
.
Hi, Here is my function for flight search. How I can disable day_return parametr ? day_return=None , "null", "" , are not working. If there is value for day_return it's working. But what if there is no value, like say oneWay flight?
def flt_search(origin, destination, day_origin, day_return=None, stopover=None):