Skip to content

Commit

Permalink
camply - 0.1.7 (#29)
Browse files Browse the repository at this point in the history
* docker-compose.yml example

* feature/booking nights (#25)

* feature progress

* campsite compilation

* silent notification dash

* flaking

* polish

* README.md tidy

* test update

* bugfix: filter dates before compiling nights
  • Loading branch information
juftin authored Jun 24, 2021
1 parent 3d48cac commit 41ecad7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ To request new features or bugfixes the
[Camply Feedback for v1.0.0 Discussion](https://github.com/juftin/camply/discussions/12) is the best
place to go.

## [0.1.6] - 2021-06-24
## [0.1.7] - 2021-06-24

### Fixed

- Fixed bug that returned matching night stays outside of the search window.

## [0.1.6] - 2021-06-23

### Added

Expand Down Expand Up @@ -82,6 +88,8 @@ place to go.

[unreleased]: https://github.com/juftin/camply/compare/main...integration

[0.1.7]: https://github.com/juftin/camply/compare/v0.1.6...v0.1.7

[0.1.6]: https://github.com/juftin/camply/compare/v0.1.5...v0.1.6

[0.1.5]: https://github.com/juftin/camply/compare/v0.1.4...v0.1.5
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.8-slim

MAINTAINER Justin Flannery <[email protected]>
LABEL version="0.1.6"
LABEL version="0.1.7"
LABEL description="camply, the campsite finder"

COPY . /tmp/camply
Expand Down
2 changes: 1 addition & 1 deletion camply/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
camply __init__ file
"""

__version__ = "0.1.6"
__version__ = "0.1.7"
3 changes: 2 additions & 1 deletion camply/search/search_recreationdotgov.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def get_all_campsites(self) -> List[AvailableCampsite]:
if index + 1 < len(self.campgrounds):
sleep(round(uniform(*RecreationBookingConfig.RATE_LIMITING), 2))
campsite_df = self.campsites_to_df(campsites=found_campsites)
compiled_campsite_df = self._consolidate_campsites(campsite_df=campsite_df,
campsite_df_validated = self._filter_date_overlap(campsites=campsite_df)
compiled_campsite_df = self._consolidate_campsites(campsite_df=campsite_df_validated,
nights=self.nights)
compiled_campsites = self.df_to_campsites(campsite_df=compiled_campsite_df)
return compiled_campsites
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "camply"
version = "0.1.6"
version = "0.1.7"
description = "camply, the campsite finder ⛺️"
authors = ["Justin Flannery <[email protected]>"]
maintainers = ["Justin Flannery <[email protected]>"]
Expand Down

0 comments on commit 41ecad7

Please sign in to comment.