count fix 2

This commit is contained in:
Andreas Stephanides
2017-01-26 16:28:39 +01:00
parent 619c0ea121
commit dc835e9788
2 changed files with 6 additions and 1 deletions

View File

@@ -45,3 +45,6 @@ def get_section_page(section_id, lim, off):
def section_count(section_id):
return Article.query.filter(Article.section_id==section_id).count()
def count():
return Article.query.count()