Subversion Repositories SmartDukaan

Rev

Rev 9791 | Rev 11526 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9791 Rev 9804
Line 549... Line 549...
549
                cod_option = False
549
                cod_option = False
550
    return cod_option
550
    return cod_option
551
 
551
 
552
def get_products_added_to_cart(startDate, endDate):
552
def get_products_added_to_cart(startDate, endDate):
553
    lines = session.query(Line.item_id).filter(Line.created_on > to_py_date(startDate)).filter(Line.created_on < to_py_date(endDate)).all()
553
    lines = session.query(Line.item_id).filter(Line.created_on > to_py_date(startDate)).filter(Line.created_on < to_py_date(endDate)).all()
-
 
554
    datas = []
-
 
555
    for line in lines:
-
 
556
        datas.append(line[0])
554
    return lines
557
    return datas
555
 
558
 
556
def insure_item(itemId, cartId, toInsure, insurerType):
559
def insure_item(itemId, cartId, toInsure, insurerType):
557
    cart = Cart.get_by(id = cartId)
560
    cart = Cart.get_by(id = cartId)
558
    line = None
561
    line = None
559
    for cartLine in cart.lines:
562
    for cartLine in cart.lines: