mirror of
https://github.com/vysecurity/LinkedInt.git
synced 2025-12-06 17:02:19 +01:00
Fixed integer division issue, integer division rounds down so the last page was always ommitted
This commit is contained in:
parent
e654a9ae16
commit
9e207ebfe4
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ def get_search():
|
||||||
data_total = content['elements'][0]['total']
|
data_total = content['elements'][0]['total']
|
||||||
|
|
||||||
# Calculate pages off final results at 40 results/page
|
# Calculate pages off final results at 40 results/page
|
||||||
pages = data_total / 40
|
pages = int(math.ceil(data_total / 40.0))
|
||||||
|
|
||||||
if pages == 0:
|
if pages == 0:
|
||||||
pages = 1
|
pages = 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue