diff options
author | Jochen Topf <jochen@topf.org> | 2015-07-09 14:05:59 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2015-07-09 14:05:59 +0200 |
commit | f3a846205d6c3f0debf936e04c143e38d31feb77 (patch) | |
tree | 73dd3db0cdf0f531206bad345f4099421d2af310 /web/lib | |
parent | 74ee5e0a339c4c4360123b9af22b83e5813aea41 (diff) | |
download | taginfo-f3a846205d6c3f0debf936e04c143e38d31feb77.tar taginfo-f3a846205d6c3f0debf936e04c143e38d31feb77.tar.gz |
Bugfix: Allow larger page counts in API. Because there are lists that large.
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/api.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/api.rb b/web/lib/api.rb index 9ad8c42..5c8cb5c 100644 --- a/web/lib/api.rb +++ b/web/lib/api.rb @@ -127,8 +127,8 @@ class APIParameters if p[:rp] !~ /^[0-9]{1,3}$/ raise ArgumentError, 'results per page must be integer between 0 and 999' end - if p[:page] !~ /^[0-9]{1,4}$/ - raise ArgumentError, 'page must be integer between 0 and 9999' + if p[:page] !~ /^[0-9]{1,6}$/ + raise ArgumentError, 'page must be integer between 0 and 999999' end @page = p[:page].to_i @results_per_page = p[:rp].to_i |