fix: [Tags] cast nb_max_page to int

This commit is contained in:
Terrtia 2019-03-20 13:33:12 +01:00
parent a9e86231ad
commit 8b5266706e
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -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)