Subversion Repositories SmartDukaan

Rev

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

Rev 6055 Rev 6056
Line 3474... Line 3474...
3474
    history.amount = amount
3474
    history.amount = amount
3475
    history.orderId = orderId
3475
    history.orderId = orderId
3476
    history.wallet = wallet
3476
    history.wallet = wallet
3477
    history.timestamp = datetime.datetime.now()
3477
    history.timestamp = datetime.datetime.now()
3478
    session.commit()
3478
    session.commit()
-
 
3479
 
-
 
3480
def get_recharge_orders_for_transaction(txId):
-
 
3481
    return RechargeOrder.query.filter_by(transaction_id = txId).first()
3479
    
3482
    
3480
        
3483
        
3481
        
-
 
3482
def close_session():
3484
def close_session():
3483
    if session.is_active:
3485
    if session.is_active:
3484
        print "session is active. closing it."
3486
        print "session is active. closing it."
3485
        session.close()
3487
        session.close()
3486
 
3488