Subversion Repositories SmartDukaan

Rev

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

Rev 9990 Rev 9991
Line 1098... Line 1098...
1098
        sheet_iterator+=1
1098
        sheet_iterator+=1
1099
    
1099
    
1100
    filename = "/tmp/snapdeal-report-"+runType+" " + str(timestamp) + ".xls"
1100
    filename = "/tmp/snapdeal-report-"+runType+" " + str(timestamp) + ".xls"
1101
    wbk.save(filename)
1101
    wbk.save(filename)
1102
    #EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["kshitij.sood@saholic.com"], " Snapdeal Auto Pricing "+runType+" " + str(timestamp), "", [get_attachment_part(filename)], [""], [])
1102
    #EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["kshitij.sood@saholic.com"], " Snapdeal Auto Pricing "+runType+" " + str(timestamp), "", [get_attachment_part(filename)], [""], [])
1103
    EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["chandan.kumar@saholic.com","manoj.kumar@saholic.com","yukti.jain@saholic.com","ankush.dhingra@saholic.com","manoj.pal@saholic.com"], " Snapdeal Auto Pricing "+runType+" " + str(timestamp), "", [get_attachment_part(filename)], ["rajneesh.arora@saholic.com","kshitij.sood@saholic.com","chaitnaya.vats@saholic.com","khushal.bhatia@saholic.com"], [])
1103
    EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["chandan.kumar@saholic.com","manoj.kumar@saholic.com","yukti.jain@saholic.com","ankush.dhingra@saholic.com","manoj.pal@saholic.com"], " Snapdeal Auto Pricing "+runType+" " + str(timestamp), "", [get_attachment_part(filename)], ["rajneesh.arora@saholic.com","rajveer.singh@sajolic.com","vikram.raghav@saholic.om","kshitij.sood@saholic.com","chaitnaya.vats@saholic.com","khushal.bhatia@saholic.com"], [])
1104
 
1104
 
1105
 
1105
 
1106
 
1106
 
1107
        
1107
        
1108
def commitExceptionList(exceptionList,timestamp):
1108
def commitExceptionList(exceptionList,timestamp):
Line 1422... Line 1422...
1422
    msg.preamble = "Snapdeal Auto Pricing" + ' - ' + str(datetime.now())
1422
    msg.preamble = "Snapdeal Auto Pricing" + ' - ' + str(datetime.now())
1423
    html_msg = MIMEText(message, 'html')
1423
    html_msg = MIMEText(message, 'html')
1424
    msg.attach(html_msg)
1424
    msg.attach(html_msg)
1425
    mailServer.login("build@shop2020.in", "cafe@nes")
1425
    mailServer.login("build@shop2020.in", "cafe@nes")
1426
    #mailServer.sendmail("cafe@nes", ['kshitij.sood@saholic.com'], msg.as_string())
1426
    #mailServer.sendmail("cafe@nes", ['kshitij.sood@saholic.com'], msg.as_string())
1427
    mailServer.sendmail("cafe@nes", ['rajneesh.arora@saholic.com','rajveer.singh@saholic.com','kshitij.sood@saholic.com','khushal.bhatia@saholic.com','chaitnaya.vats@saholic.com','chandan.kumar@saholic.com','manoj.kumar@saholic.com','yukti.jain@saholic.com','ankush.dhingra@saholic.com','manoj.pal@saholic.com'], msg.as_string())
1427
    mailServer.sendmail("cafe@nes", ['rajneesh.arora@saholic.com','rajveer.singh@saholic.com','vikram.raghav@saholic.com','kshitij.sood@saholic.com','khushal.bhatia@saholic.com','chaitnaya.vats@saholic.com','chandan.kumar@saholic.com','manoj.kumar@saholic.com','yukti.jain@saholic.com','ankush.dhingra@saholic.com','manoj.pal@saholic.com'], msg.as_string())
1428
 
1428
 
1429
def commitPricing(successfulAutoDecrease,successfulAutoIncrease,timestamp):
1429
def commitPricing(successfulAutoDecrease,successfulAutoIncrease,timestamp):
1430
    catalog_client = CatalogClient().get_client()
1430
    catalog_client = CatalogClient().get_client()
1431
    inventory_client = InventoryClient().get_client()
1431
    inventory_client = InventoryClient().get_client()
1432
    for item in successfulAutoDecrease:
1432
    for item in successfulAutoDecrease: