Skip to content
Snippets Groups Projects
Commit f4733aa8 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website - force to test isdigit on a string else a tb "'int' object has...

[FIX] website - force to test isdigit on a string else a tb  "'int' object has no attribute 'isdigit'" can exist if the page var was right and so already and int
parent 7ba41e75
Branches
Tags
No related merge requests found
......@@ -250,7 +250,7 @@ class website(osv.osv):
# Compute Pager
page_count = int(math.ceil(float(total) / step))
page = max(1, min(int(page if page.isdigit() else 1), page_count))
page = max(1, min(int(page if str(page).isdigit() else 1), page_count))
scope -= 1
pmin = max(page - int(math.floor(scope/2)), 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment