def set_multiitem_dealed(it_id_list): for it_id in it_id_list: query = Item.update(deal = 1).where(Item.it_id == it_id) query.execute()
def set_item_dealed(it_id): query = Item.update(deal = 1).where(Item.it_id == it_id) query.execute()