Skip to content

Commit

Permalink
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion camply/_version.py
Original file line number Diff line number Diff line change
@@ -2,5 +2,5 @@
camply __version__ file
"""

__version__ = "0.2.2"
__version__ = "0.2.3"
__camply__ = "camply"
9 changes: 7 additions & 2 deletions camply/providers/xanterra/yellowstone_lodging.py
Original file line number Diff line number Diff line change
@@ -160,14 +160,19 @@ def _return_lodging_url(cls, lodging_code: str, month: datetime,
str
URL String
"""
query = dict(dateFrom=month.strftime("%m-%d-%Y"))
query = dict(
dateFrom=month.strftime("%m-%d-%Y"),
adults=1,
destination=lodging_code,
children=0,
)
if params is not None:
query.update(params)
query_string = parse.urlencode(query=query)

url_components = dict(scheme=YellowstoneConfig.API_SCHEME,
netloc=YellowstoneConfig.WEBUI_BASE_ENDPOINT,
url=f"{YellowstoneConfig.WEBUI_BOOKING_PATH}/{lodging_code}",
url=YellowstoneConfig.WEBUI_BOOKING_PATH,
params="", query=query_string, fragment="")
webui_endpoint = parse.urlunparse(tuple(url_components.values()))
return webui_endpoint

0 comments on commit 7229f46

Please sign in to comment.