diff --git a/ArticlesApp/funcs.py b/ArticlesApp/funcs.py index e1bbfc2..3331ecb 100644 --- a/ArticlesApp/funcs.py +++ b/ArticlesApp/funcs.py @@ -22,7 +22,7 @@ def get_articles(art_kwargs, request_Data=None, from_el=None, to_el=None): elif to_el: arts = arts[:to_el] else: - to_el = 3 + to_el = elements_on_page + 1 arts = arts[:to_el] last_block = False