models/marking_model.py
def update_complete(cls, id, complete):
        """Updates the complete for an entry"""
        obj = cls.query.filter_by(id=id).first()
        obj.complete = complete
        obj.start_to_comp = MarkingModel.lt_check(obj.start_date, complete)
        db.session.commit()
        return None
Updates the complete for an entry
Updates the complete for an entry
Updates the complete for an entry
def update_complete(cls, id, complete):
        obj = cls.query.filter_by(id=id).first()
        obj.complete = complete
        obj.start_to_comp = MarkingModel.lt_check(obj.start_date, complete)
        db.session.commit()
        return None
def update_complete ( cls , id , complete ) : obj = cls . query . filter_by ( id = id ) . first ( ) obj . complete = complete obj . start_to_comp = MarkingModel . lt_check ( obj . start_date , complete ) db . session . commit ( ) return None
Updates the complete for an entry
Updates the complete for an entry
"""Updates the complete for an entry"""
cls
id
complete