Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET /runs returning duplicates on some orderby filters #155

Open
audiosalix opened this issue Sep 8, 2022 · 0 comments
Open

GET /runs returning duplicates on some orderby filters #155

audiosalix opened this issue Sep 8, 2022 · 0 comments

Comments

@audiosalix
Copy link

When getting a list of all runs in a category, I found that I was receiving duplicates of many runs instead of the full list of runs that matched the filter

To test, I ran a script that took every verified run from a particular category, and put the run IDs into a set.
(https://www.speedrun.com/api/v1/runs?category=n2y9z41d&status=verified)

orderby=game and orderby=level returned 802 unique runs, and 606 duplicate runs
orderby=date returned 1398 unique runs and 10 duplicates
orderby=category and orderby=verify-date returned 1408 unique runs and no duplicates

No idea what is causing this behaviour and didn't seem to be any logic to which runs were duplicated, although it was deterministic. Another moderator also tested with their own script and got the same results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant