models/printing_model.py
def update_db(cls, id, date_created, employee, item, serial_num, ins_type, unit_type, rec_date, rec_pass,
                  start_date, appearance, functions, notes, complete):
        """Updates all items in printing data table"""
        obj = cls.query.filter_by(id=id).first()
        obj.date_created = date_created
        obj.employee = employee
        obj.item = item
        obj.serial_num = serial_num
        obj.ins_type = ins_type
        obj.unit_type = unit_type
        obj.rec_date = rec_date
        obj.rec_pass = rec_pass
        obj.start_date = start_date
        obj.appearance = appearance
        obj.functions = functions
        obj.complete = complete
        obj.notes = notes
        db.session.commit()
Updates all items in printing data table
Updates all items in printing data table
Updates all items in printing data table
def update_db(cls, id, date_created, employee, item, serial_num, ins_type, unit_type, rec_date, rec_pass,
                  start_date, appearance, functions, notes, complete):
        obj = cls.query.filter_by(id=id).first()
        obj.date_created = date_created
        obj.employee = employee
        obj.item = item
        obj.serial_num = serial_num
        obj.ins_type = ins_type
        obj.unit_type = unit_type
        obj.rec_date = rec_date
        obj.rec_pass = rec_pass
        obj.start_date = start_date
        obj.appearance = appearance
        obj.functions = functions
        obj.complete = complete
        obj.notes = notes
        db.session.commit()
def update_db ( cls , id , date_created , employee , item , serial_num , ins_type , unit_type , rec_date , rec_pass , start_date , appearance , functions , notes , complete ) : obj = cls . query . filter_by ( id = id ) . first ( ) obj . date_created = date_created obj . employee = employee obj . item = item obj . serial_num = serial_num obj . ins_type = ins_type obj . unit_type = unit_type obj . rec_date = rec_date obj . rec_pass = rec_pass obj . start_date = start_date obj . appearance = appearance obj . functions = functions obj . complete = complete obj . notes = notes db . session . commit ( )
Updates all items in printing data table
Updates all items in printing data table
"""Updates all items in printing data table"""
cls
id
date_created
employee
item
serial_num
ins_type
unit_type
rec_date
rec_pass
start_date
appearance
functions
notes
complete