Skip to content

Commit

Permalink
Fix review sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
JoMingyu committed Jan 29, 2024
1 parent 882434d commit 28573c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google_play_scraper/constants/google_play.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@


class Sort(int, Enum):
NEWEST = 2
MOST_RELEVANT = 1
NEWEST = 2
RATING = 3


class Device(int, Enum):
Expand Down
2 changes: 2 additions & 0 deletions google_play_scraper/features/reviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def reviews(
filter_device_with: int = None,
continuation_token: _ContinuationToken = None,
) -> Tuple[List[dict], _ContinuationToken]:
sort = sort.value

if continuation_token is not None:
token = continuation_token.token

Expand Down

0 comments on commit 28573c6

Please sign in to comment.