models/marking_model.py
def update_cleaning(cls, id, cleaning):
        """Updates the cleaning for an entry"""
        obj = cls.query.filter_by(id=id).first()
        obj.cleaning = cleaning
        db.session.commit()
        return None
Updates the cleaning for an entry
Updates the cleaning for an entry
Updates the cleaning for an entry
def update_cleaning(cls, id, cleaning):
        obj = cls.query.filter_by(id=id).first()
        obj.cleaning = cleaning
        db.session.commit()
        return None
def update_cleaning ( cls , id , cleaning ) : obj = cls . query . filter_by ( id = id ) . first ( ) obj . cleaning = cleaning db . session . commit ( ) return None
Updates the cleaning for an entry
Updates the cleaning for an entry
"""Updates the cleaning for an entry"""
cls
id
cleaning