Changes variable name
From to
This commit is contained in:
parent
e911deb425
commit
874d5eb282
@ -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:]
|
||||
|
||||
|
Reference in New Issue
Block a user