Skip to content
Browse files

fixed: show only "next page" if needed

  • Loading branch information...
1 parent 93a4598 commit 358762911721507e07db593a1c1d080fed0dbdbb @dersphere committed Nov 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 addon.py
View
2 addon.py
@@ -174,7 +174,7 @@ def __finish_paginate(endpoint, api_func, *args, **kwargs):
**kwargs
)
})
- if True:
+ if int(page) * PER_PAGE > int(total_count):
p = str(int(page) + 1)
items.append({
'label': '>> Page %s >>' % p,

0 comments on commit 3587629

Please sign in to comment.
Something went wrong with that request. Please try again.