{"action":"created","issue":{"url":"https://api.github.com/repos/ornicar/lila/issues/4061","repository_url":"https://api.github.com/repos/ornicar/lila","labels_url":"https://api.github.com/repos/ornicar/lila/issues/4061/labels{/name}","comments_url":"https://api.github.com/repos/ornicar/lila/issues/4061/comments","events_url":"https://api.github.com/repos/ornicar/lila/issues/4061/events","html_url":"https://github.com/ornicar/lila/issues/4061","id":299929240,"number":4061,"title":"GET /training/batch returns incorrect user rating","user":{"login":"veloce","id":423393,"avatar_url":"https://avatars1.githubusercontent.com/u/423393?v=4","gravatar_id":"","url":"https://api.github.com/users/veloce","html_url":"https://github.com/veloce","followers_url":"https://api.github.com/users/veloce/followers","following_url":"https://api.github.com/users/veloce/following{/other_user}","gists_url":"https://api.github.com/users/veloce/gists{/gist_id}","starred_url":"https://api.github.com/users/veloce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veloce/subscriptions","organizations_url":"https://api.github.com/users/veloce/orgs","repos_url":"https://api.github.com/users/veloce/repos","events_url":"https://api.github.com/users/veloce/events{/privacy}","received_events_url":"https://api.github.com/users/veloce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-24T09:56:08Z","updated_at":"2018-04-09T16:10:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When requesting for example `https://lichess.org/training/batch?nb=3`, it does return correct recent puzzle array but incorrect rating (not the last one).\r\n\r\n<img width=\"286\" alt=\"screen shot 2018-02-24 at 10 52 57\" src=\"https://user-images.githubusercontent.com/423393/36629040-f935ded0-1950-11e8-91ca-8af735f919e2.png\">\r\n\r\nHere we can see the last puzzle in `recent` array has +22 diff and rating of 1608, thus the correct user rating should be 1630 and not 1623.\r\n\r\nThis problem occurs only with batch request when `nb > 1` and not with `GET /training/<id>/load`."},"comment":{"url":"https://api.github.com/repos/ornicar/lila/issues/comments/379806372","html_url":"https://github.com/ornicar/lila/issues/4061#issuecomment-379806372","issue_url":"https://api.github.com/repos/ornicar/lila/issues/4061","id":379806372,"user":{"login":"ornicar","id":140370,"avatar_url":"https://avatars0.githubusercontent.com/u/140370?v=4","gravatar_id":"","url":"https://api.github.com/users/ornicar","html_url":"https://github.com/ornicar","followers_url":"https://api.github.com/users/ornicar/followers","following_url":"https://api.github.com/users/ornicar/following{/other_user}","gists_url":"https://api.github.com/users/ornicar/gists{/gist_id}","starred_url":"https://api.github.com/users/ornicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornicar/subscriptions","organizations_url":"https://api.github.com/users/ornicar/orgs","repos_url":"https://api.github.com/users/ornicar/repos","events_url":"https://api.github.com/users/ornicar/events{/privacy}","received_events_url":"https://api.github.com/users/ornicar/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T16:10:09Z","updated_at":"2018-04-09T16:10:09Z","author_association":"OWNER","body":"I think your case is unrelated mklemenz, it's because you've played 22k puzzles and have started playing through the first ones again."}}
{"actor":{"display_login":"ornicar"}}