fix articles page
This commit is contained in:
SDE
2023-11-29 19:21:15 +03:00
parent a733649521
commit 7eb8edbe1f
10 changed files with 74 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
from .models import *
elements_on_page = 1
elements_on_page = 5
def get_articles(art_kwargs, request_Data=None, from_el=None, to_el=None):
@@ -38,7 +38,8 @@ def get_articles(art_kwargs, request_Data=None, from_el=None, to_el=None):
'articles': arts,
'last_block': last_block,
'last_el': to_el,
'next_page_els_count': next_page_els_count
'next_page_els_count': next_page_els_count,
'elements_on_page': elements_on_page
}
return Dict