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