Changes variable name

From  to
This commit is contained in:
pluja 2020-10-02 13:53:46 +02:00
parent e911deb425
commit 874d5eb282

View File

@ -100,7 +100,7 @@ def twitter(page=0):
# Items range per page # Items range per page
page_items = page*10 page_items = page*10
tenmore = page_items+16 offset = page_items+16
# Pagination logic # Pagination logic
init_page = page-3 init_page = page-3
if init_page < 0: if init_page < 0:
@ -111,8 +111,8 @@ def twitter(page=0):
total_pages = max_pages total_pages = max_pages
# Posts to render # Posts to render
if posts and len(posts) > tenmore: if posts and len(posts) > offset:
posts = posts[page_items:tenmore] posts = posts[page_items:offset]
else: else:
posts = posts[page_items:] posts = posts[page_items:]