diff --git a/app/routes.py b/app/routes.py index 65ade7c..a0752ec 100644 --- a/app/routes.py +++ b/app/routes.py @@ -100,7 +100,7 @@ def twitter(page=0): # Items range per page page_items = page*10 - tenmore = page_items+16 + offset = page_items+16 # Pagination logic init_page = page-3 if init_page < 0: @@ -111,8 +111,8 @@ def twitter(page=0): total_pages = max_pages # Posts to render - if posts and len(posts) > tenmore: - posts = posts[page_items:tenmore] + if posts and len(posts) > offset: + posts = posts[page_items:offset] else: posts = posts[page_items:]