История изменений
Исправление vvn_black, (текущая версия) :
PER_PAGE = 10
ITEMS = []
if len(ITEMS) % PER_PAGE == 0:
TOTAL_PAGES = len(ITEMS) // PER_PAGE
else:
TOTAL_PAGES = len(ITEMS) // PER_PAGE + 1
show_items = ITEMS[(ACTIVE_PAGE - 1) * PER_PAGE: ACTIVE_PAGE * PER_PAGE]
Исправление vvn_black, :
PER_PAGE = 10
ITEMS = []
if ITEMS.length % PER_PAGE == 0:
TOTAL_PAGES = len(ITEMS) // PER_PAGE
else:
TOTAL_PAGES = len(ITEMS) // PER_PAGE + 1
show_items = ITEMS[(ACTIVE_PAGE - 1) * PER_PAGE: ACTIVE_PAGE * PER_PAGE]
Исправление vvn_black, :
PER_PAGE = 10
ITEMS = []
if ITEMS.length % PER_PAGE == 0:
TOTAL_PAGES = ITEMS.length // PER_PAGE
else:
TOTAL_PAGES = len(ITEMS) // PER_PAGE + 1
show_items = ITEMS[(ACTIVE_PAGE - 1) * PER_PAGE: ACTIVE_PAGE * PER_PAGE]
Исходная версия vvn_black, :
PER_PAGE = 10
ITEMS = []
if ITEMS.length % PER_PAGE == 0:
TOTAL_PAGES = ITEMS.length // PER_PAGE
else:
TOTAL_PAGES = ITEMS.length // PER_PAGE + 1
show_items = ITEMS[(ACTIVE_PAGE - 1) * PER_PAGE: ACTIVE_PAGE * PER_PAGE]