Subversion Repositories SmartDukaan

Rev

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

Rev 9949 Rev 9952
Line 1055... Line 1055...
1055
            sheet.write(sheet_iterator, 5, math.ceil(mpHistory.ourSellingPrice+max(10,.01*mpHistory.ourSellingPrice)))
1055
            sheet.write(sheet_iterator, 5, math.ceil(mpHistory.ourSellingPrice+max(10,.01*mpHistory.ourSellingPrice)))
1056
        sheet_iterator+=1
1056
        sheet_iterator+=1
1057
    
1057
    
1058
    filename = "/tmp/snapdeal-auto-" + str(timestamp) + ".xls"
1058
    filename = "/tmp/snapdeal-auto-" + str(timestamp) + ".xls"
1059
    wbk.save(filename)
1059
    wbk.save(filename)
1060
    EmailAttachmentSender.mail("cnc.center@shop2020.in", "5h0p2o2o", [], "Snapdeal Auto Pricing for time " + str(timestamp), "Please find attached details.", [get_attachment_part(filename)], [""], [])
1060
    EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["kshitij.sood@saholic.com"], " Snapdeal Auto Pricing " + str(timestamp), "", [get_attachment_part(filename)], ["kshitij.sood@saholic.com"], [])
1061
        
1061
        
1062
def commitExceptionList(exceptionList,timestamp):
1062
def commitExceptionList(exceptionList,timestamp):
1063
    exceptionItems=[]
1063
    exceptionItems=[]
1064
    for item in exceptionList:
1064
    for item in exceptionList:
1065
        mpHistory = MarketPlaceHistory()
1065
        mpHistory = MarketPlaceHistory()