Browse Source

Merge pull request #52 from pdme/master

Made pagination start at p=0 instead of p=1
pull/56/head
o1lab 6 years ago committed by GitHub
parent
commit
f0b2041eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/xsql.js

2
lib/xsql.js

@ -217,7 +217,7 @@ class Xsql {
if ('_p' in reqParams && parseInt(reqParams._p) > 0) { if ('_p' in reqParams && parseInt(reqParams._p) > 0) {
reqParams._index = (parseInt(reqParams._p) - 1) * reqParams._len; reqParams._index = parseInt(reqParams._p) * reqParams._len;
} }
//console.log(reqParams._index, reqParams._len); //console.log(reqParams._index, reqParams._len);

Loading…
Cancel
Save