diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-10-10 00:04:14 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-10-10 00:04:14 +0200 |
commit | f3f35b9a4140830e97b5382bc22fc2e78be7124b (patch) | |
tree | eb986b3bfdc0219aae8eb53b21a8e5b06c47a264 | |
parent | 25041bc1c1bcd264ae97f8d0506ccec43e75a253 (diff) |
Fix bug in get-entries limitation of entries.
-rw-r--r-- | src/v1.erl | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -103,8 +103,7 @@ {End, _} = string:to_integer(EndInput), case lists:member(error, [Start, End]) of true -> html("get-entries: bad input:", [Start, End]); - false -> catlfish:entries(Start, - min(max(End, Start), Start + 999)) + false -> catlfish:entries(Start, min(End, Start + 999)) end; _ -> html("get-entries: bad input:", Input) end, |