Skip to content

Commit

Permalink
Correctly set API search offset (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
piazzatron committed Aug 7, 2020
1 parent 5e7a6aa commit 25e7c63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion discovery-provider/src/api/v1/playlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get(self):
"current_user_id": None,
"with_users": True,
"limit": 10,
"offset": 1
"offset": 0
}
response = search(search_args)
playlists = list(map(extend_playlist, response["playlists"]))
Expand Down
2 changes: 1 addition & 1 deletion discovery-provider/src/api/v1/tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get(self):
"current_user_id": None,
"with_users": True,
"limit": 10,
"offset": 1
"offset": 0
}
response = search(search_args)
tracks = response["tracks"]
Expand Down
2 changes: 1 addition & 1 deletion discovery-provider/src/api/v1/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get(self):
"current_user_id": None,
"with_users": True,
"limit": 10,
"offset": 1,
"offset": 0,
}
response = search(search_args)
users = response["users"]
Expand Down

0 comments on commit 25e7c63

Please sign in to comment.