Subversion Repositories SmartDukaan

Rev

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

Rev 12977 Rev 13025
Line 574... Line 574...
574
        cantCompete.append(temp)
574
        cantCompete.append(temp)
575
    
575
    
576
    return cantCompete, buyBoxItems, competitive, competitiveNoInventory, exceptionItems, negativeMargin
576
    return cantCompete, buyBoxItems, competitive, competitiveNoInventory, exceptionItems, negativeMargin
577
 
577
 
578
def writeReport(cantCompete, buyBoxItems, competitive, competitiveNoInventory, exceptionList, negativeMargin, previousAutoFav, nowAutoFav,timestamp,runType):
578
def writeReport(cantCompete, buyBoxItems, competitive, competitiveNoInventory, exceptionList, negativeMargin, previousAutoFav, nowAutoFav,timestamp,runType):
579
    wbk = xlwt.Workbook()
579
    wbk = xlwt.Workbook(encoding="UTF-8")
580
    sheet = wbk.add_sheet('Can\'t Compete')
580
    sheet = wbk.add_sheet('Can\'t Compete')
581
    xstr = lambda s: s or ""
581
    xstr = lambda s: s or ""
582
    heading_xf = xlwt.easyxf('font: bold on; align: wrap off, vert centre, horiz center')
582
    heading_xf = xlwt.easyxf('font: bold on; align: wrap off, vert centre, horiz center')
583
    
583
    
584
    excel_integer_format = '0'
584
    excel_integer_format = '0'