mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +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)
|
||||
if not nb_page_max.is_integer():
|
||||
nb_page_max = int(nb_page_max)+1
|
||||
else:
|
||||
nb_page_max = int(nb_page_max)
|
||||
if page > nb_page_max:
|
||||
page = nb_page_max
|
||||
start = max_tags_result*(page -1)
|
||||
|
|
Loading…
Reference in a new issue