mirror of
https://github.com/valitydev/wapi-lib.git
synced 2024-11-07 10:38:52 +00:00
[WIP] Fix gensrv backend
This commit is contained in:
parent
2b1b9e85a7
commit
790bcdb674
@ -333,6 +333,6 @@ limit_range(N, backward, {A, B}) ->
|
||||
query_range({A, B}, _, _) when A > B ->
|
||||
[];
|
||||
query_range({A, B}, forward, H) ->
|
||||
lists:sublist(H, A, B - A);
|
||||
lists:sublist(H, A, B - A + 1);
|
||||
query_range({A, B}, backward, H) ->
|
||||
lists:reverse(lists:sublist(H, A, B - A)).
|
||||
lists:reverse(lists:sublist(H, A, B - A + 1)).
|
||||
|
Loading…
Reference in New Issue
Block a user