count articles per section

This commit is contained in:
Andreas Stephanides
2017-01-26 16:16:53 +01:00
parent e3c09974c7
commit c0a091a8c7
2 changed files with 7 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ def get_articles(id):
resp = jsonify(articles=articles)
resp.headers['Pagination-Limit']=pp
resp.headers['Pagination-Offset']=o
resp.headers['Pagination-TotalCount']=controller.count()
resp.headers['Pagination-TotalCount']=article_controller.section_count(id)
return resp