models/marking_model.py
def total_count(cls, name, date):
        """Counts the total amount of entries"""
        count = 0
        obj = cls.query.filter(MarkingModel.complete != '').all()
        for o in obj:
            if o.complete.split('-')[1] == date:
                count += 1
        return count
Counts the total amount of entries
Counts the total amount of entries
Counts the total amount of entries
def total_count(cls, name, date):
        count = 0
        obj = cls.query.filter(MarkingModel.complete != '').all()
        for o in obj:
            if o.complete.split('-')[1] == date:
                count += 1
        return count
def total_count ( cls , name , date ) : count = 0 obj = cls . query . filter ( MarkingModel . complete != '' ) . all ( ) for o in obj : if o . complete . split ( '-' ) [ 1 ] == date : count += 1 return count
Counts the total amount of entries
Counts the total amount of entries
"""Counts the total amount of entries"""
cls
name
date