Skip to content

Commit

Permalink
fix off-by-one issue with paging (#97)
Browse files Browse the repository at this point in the history
* fix off by one issue with paging

* subtract 1 from region_rank
  • Loading branch information
spencerchubb committed Aug 1, 2023
1 parent bc2c895 commit d5163c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
select
floor(region_rank / :PAGE_SIZE)
floor((region_rank - 1) / :PAGE_SIZE)
from
sum_of_ranks sor
where
Expand Down

0 comments on commit d5163c7

Please sign in to comment.