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