correct pagination headers

This commit is contained in:
Andreas Stephanides
2017-01-22 10:06:13 +01:00
parent 6e3247c66a
commit e5bccfe7da
2 changed files with 6 additions and 3 deletions

View File

@@ -14,3 +14,6 @@ def search(s):
def get_all_page(lim, off):
return Article.query.order_by(Article.published_date.desc()).limit(lim).offset(off).all()
def count():
return Article.query.count()