mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-31 14:36:15 +00:00
fix: [Tags] cast nb_max_page to int
This commit is contained in:
parent
a9e86231ad
commit
8b5266706e
1 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,8 @@ def Tags_page():
|
||||||
nb_page_max = len(tagged_pastes)/(max_tags_result)
|
nb_page_max = len(tagged_pastes)/(max_tags_result)
|
||||||
if not nb_page_max.is_integer():
|
if not nb_page_max.is_integer():
|
||||||
nb_page_max = int(nb_page_max)+1
|
nb_page_max = int(nb_page_max)+1
|
||||||
|
else:
|
||||||
|
nb_page_max = int(nb_page_max)
|
||||||
if page > nb_page_max:
|
if page > nb_page_max:
|
||||||
page = nb_page_max
|
page = nb_page_max
|
||||||
start = max_tags_result*(page -1)
|
start = max_tags_result*(page -1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue