Skip to content

Commit

Permalink
Merge pull request #14 from zytedata/relnotes-0.5.0
Browse files Browse the repository at this point in the history
Release notes for 0.5.0.
  • Loading branch information
wRAR authored Jan 24, 2024
2 parents 2b4632a + 2bb0ffa commit 8826a47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changes
=======

0.5.0 (YYYY-MM-DD)
------------------

* Add the ``extract_rating`` and ``extract_rating_stars`` functions for
extracting values.
* Add the ``extract_review_count`` function for extracting review counts.

0.4.0 (2023-12-26)
------------------

Expand Down
2 changes: 1 addition & 1 deletion zyte_parsers/aggregate_rating.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _check_best_rating(value: float, rating_value: float) -> Optional[float]:
return best_rating


def _get_rating_numbers(node_text: Optional[str]) -> List[Optional[float]]:
def _get_rating_numbers(node_text: Optional[str]) -> List[float]:
rating_nums: List = []
if node_text:
node_nums = re.findall(r"\d*,\d+|\d*\.\d+|\d+", node_text)
Expand Down

0 comments on commit 8826a47

Please sign in to comment.