{"action":"created","issue":{"url":"https://api.github.com/repos/mysociety/alaveteli/issues/2414","labels_url":"https://api.github.com/repos/mysociety/alaveteli/issues/2414/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/alaveteli/issues/2414/comments","events_url":"https://api.github.com/repos/mysociety/alaveteli/issues/2414/events","html_url":"https://github.com/mysociety/alaveteli/issues/2414","id":74013351,"number":2414,"title":"Request pagination page count on authorities is wrong","user":{"login":"stevenday","id":663700,"avatar_url":"https://avatars.githubusercontent.com/u/663700?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenday","html_url":"https://github.com/stevenday","followers_url":"https://api.github.com/users/stevenday/followers","following_url":"https://api.github.com/users/stevenday/following{/other_user}","gists_url":"https://api.github.com/users/stevenday/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenday/subscriptions","organizations_url":"https://api.github.com/users/stevenday/orgs","repos_url":"https://api.github.com/users/stevenday/repos","events_url":"https://api.github.com/users/stevenday/events{/privacy}","received_events_url":"https://api.github.com/users/stevenday/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mysociety/alaveteli/labels/1%20-%20new","name":"1 - new","color":"e11d21"},{"url":"https://api.github.com/repos/mysociety/alaveteli/labels/bug","name":"bug","color":"AE0902"},{"url":"https://api.github.com/repos/mysociety/alaveteli/labels/uk","name":"uk","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-07T14:49:06Z","updated_at":"2015-05-07T16:10:35Z","closed_at":null,"body":"Viewing requests by authority, I see a list pagination links at the bottom. For some reason, this is exaggerating the number of requests available.\r\n\r\nFor example: https://www.whatdotheyknow.com/body/brighton_and_hove_city_council shows 118 pages, but there are actually only 20 that don't error. \r\n\r\nSomething similar but more subtle also happens when I use the date range filter. For example: https://www.whatdotheyknow.com/body/brighton_and_hove_city_council/awaiting?utf8=%E2%9C%93&query=&request_date_after=2015%2F05%2F05&request_date_before=2015%2F05%2F07&commit=Search Really only has 2 pages of requests, but shows 23 when I'm on the first page. However if you visit the second page, it manages to work it out properly.\r\n\r\nPresumably it's looking at the wrong list of requests initially or something?\r\n\r\n(I've marked this as UK because I haven't tested it elsewhere to see if it's a problem there too)"},"comment":{"url":"https://api.github.com/repos/mysociety/alaveteli/issues/comments/99924579","html_url":"https://github.com/mysociety/alaveteli/issues/2414#issuecomment-99924579","issue_url":"https://api.github.com/repos/mysociety/alaveteli/issues/2414","id":99924579,"user":{"login":"crowbot","id":2912,"avatar_url":"https://avatars.githubusercontent.com/u/2912?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbot","html_url":"https://github.com/crowbot","followers_url":"https://api.github.com/users/crowbot/followers","following_url":"https://api.github.com/users/crowbot/following{/other_user}","gists_url":"https://api.github.com/users/crowbot/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbot/subscriptions","organizations_url":"https://api.github.com/users/crowbot/orgs","repos_url":"https://api.github.com/users/crowbot/repos","events_url":"https://api.github.com/users/crowbot/events{/privacy}","received_events_url":"https://api.github.com/users/crowbot/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T16:10:35Z","updated_at":"2015-05-07T16:10:35Z","body":"I think #2137 is responsible for the first part of the description here, but not for the more subtle issue @stevenday describes in the second para."}}