Subversion Repositories SmartDukaan

Rev

Rev 11954 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11954 Rev 20172
Line 260... Line 260...
260
    
260
    
261
    today = date.today()
261
    today = date.today()
262
    datestr = str(today.year) + "-" + str(today.month) + "-" + str(today.day)
262
    datestr = str(today.year) + "-" + str(today.month) + "-" + str(today.day)
263
    mail_body = "Number of records successfully inserted :"+str(len(successful))+"\nFollowing order id's were not processed because\nServer Side Error: "+', '.join(map(str, serverSide))+"\n"+"Data Format Error: "+', '.join(map(str, dataFormat))+"\n"+"Duplicate entry IMEI: "+', '.join(map(str, duplicateRecord))
263
    mail_body = "Number of records successfully inserted :"+str(len(successful))+"\nFollowing order id's were not processed because\nServer Side Error: "+', '.join(map(str, serverSide))+"\n"+"Data Format Error: "+', '.join(map(str, dataFormat))+"\n"+"Duplicate entry IMEI: "+', '.join(map(str, duplicateRecord))
264
    print mail_body
264
    print mail_body
265
    EmailAttachmentSender.mail("cnc.center@shop2020.in", "5h0p2o2o", ["anikendra.das@shop2020.in","kshitij.sood@shop2020.in","rajneesh.arora@saholic.com"], "Insurance submission result for date " + datestr, mail_body, [], [], [])
265
    EmailAttachmentSender.mail("cnc.center@shop2020.in", "5h0p2o2o", ["anikendra.das@shop2020.in","kshitij.sood@shop2020.in","rajneesh.arora@saholic.com","khushal.bhatia@saholic.com"], "Insurance submission result for date " + datestr, mail_body, [], [], [])
266
    
266
    
267
    if(len(args)>1):
267
    if(len(args)>1):
268
        print "Exiting.Dont want to run delivered_orders() and returned_orders() again."
268
        print "Exiting.Dont want to run delivered_orders() and returned_orders() again."
269
        sys.exit(0)
269
        sys.exit(0)
270
        
270