Use with the --exact-windows flag to camply campsites
Description
I wrote this feature for myself but maybe others would find it useful too. It adds an --exact-windows flag to tell camply to only find a campsite which has an availability matching the entirety of one of the ranges specified between --start-date and --end-date. It is useful when you want to search for multiple date ranges at once, and the minimum number of nights you want to stay for each is different.
Will search for two night availabilities starting 2023-10-08 and three night availabilities starting 2023-10-15, but will not search for two night availabilities between 2023-10-15 and 2023-10-18.
Has This Been Tested?
Tested manually and also added a basic test to tests/cli/test_campsites.py.
Love this, I've mostly just glanced at it but everything looks to be covered here. Thank you very much for the contribution - I will get some additional review on this soon.
Use with the
--exact-windows
flag tocamply campsites
Description
I wrote this feature for myself but maybe others would find it useful too. It adds an
--exact-windows
flag to tell camply to only find a campsite which has an availability matching the entirety of one of the ranges specified between--start-date
and--end-date
. It is useful when you want to search for multiple date ranges at once, and the minimum number of nights you want to stay for each is different.For example
Will search for two night availabilities starting 2023-10-08 and three night availabilities starting 2023-10-15, but will not search for two night availabilities between 2023-10-15 and 2023-10-18.
Has This Been Tested?
Tested manually and also added a basic test to
tests/cli/test_campsites.py
.Checklist:
.pre_commit
on all my code