fix: [Tags] cast nb_max_page to int

pull/342/head
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
1 changed files with 2 additions and 0 deletions

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)