Skip to content

Added support for multiple destinations#1

Open
Crixu wants to merge 5 commits into
andrea-sdl:mainfrom
Crixu:feat/multi-destinations
Open

Added support for multiple destinations#1
Crixu wants to merge 5 commits into
andrea-sdl:mainfrom
Crixu:feat/multi-destinations

Conversation

@Crixu
Copy link
Copy Markdown

@Crixu Crixu commented Feb 20, 2024

I added an option to specify a destinations.txt file and write the output to a CSV file

Comment thread index.js Outdated
Comment on lines +45 to +47
// console.log(
// `Airfare price from ${origin} to ${destination} on ${DEPARTURE_DATE} - ${RETURN_DATE}: $${price}`
// );
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Crixu curious why you commented this, was it too much noisy?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah I commented it out as I saved the output as CSV but I guess most people would like this kind of process reporting

Comment thread index.js Outdated
adults: 1,
currencyCode: "USD",
max: 3,
max: 1, // Only fetch the cheapest flight
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Crixu did you test it already? I initially set 3 because with 1 I would, sometimes, get no results on some origin-destination combinations, where with 3 I would always get some.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh good to know. I mainly thought about reducing the needed time for the checks if it would only include one of them.

Switched to check 3 flights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants