Subversion Repositories SmartDukaan

Rev

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

Rev 14982 Rev 14983
Line 13... Line 13...
13
    userIds = []
13
    userIds = []
14
    orders = db.merchantOrder.find({'status':'html_required', 'storeId':1, 'subOrders':{'$exists':0}})
14
    orders = db.merchantOrder.find({'status':'html_required', 'storeId':1, 'subOrders':{'$exists':0}})
15
    for o in orders:
15
    for o in orders:
16
        if o['userId'] not in userIds:
16
        if o['userId'] not in userIds:
17
            print o['userId'], o['orderSuccessUrl']
17
            print o['userId'], o['orderSuccessUrl']
-
 
18
            o.append(o['userId'])
18
            sendNotification([o['userId']], 'Test', 'Claim cashback on  your Amazon orders', 'Login to your Amazon account now.', 'url', o['orderSuccessUrl']) 
19
            sendNotification([o['userId']], 'Test', 'Claim cashback on  your Amazon orders', 'Login to your Amazon account now.', 'url', o['orderSuccessUrl']) 
19
            
20
            
20
 
21
 
21
 
22
 
22
def main():
23
def main():