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