Example #1
0
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()
Example #2
0
def set_item_dealed(it_id):
    query = Item.update(deal = 1).where(Item.it_id == it_id)
    query.execute()