Subversion Repositories SmartDukaan

Rev

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

Rev 12679 Rev 12680
Line 1366... Line 1366...
1366
 
1366
 
1367
def getCategory(data):
1367
def getCategory(data):
1368
    return categoryMap[data.category]
1368
    return categoryMap[data.category]
1369
 
1369
 
1370
def writeReport(timestamp,autoDecreaseItems,autoIncreaseItems,previousAutoFav,nowAutoFav,runType):
1370
def writeReport(timestamp,autoDecreaseItems,autoIncreaseItems,previousAutoFav,nowAutoFav,runType):
1371
    wbk = xlwt.Workbook()
1371
    wbk = xlwt.Workbook(encoding="UTF-8")
1372
    sheet = wbk.add_sheet('Competiton Det.')
1372
    sheet = wbk.add_sheet('Competiton Det')
1373
    xstr = lambda s: s or ""
1373
    xstr = lambda s: s or ""
1374
    heading_xf = xlwt.easyxf('font: bold on; align: wrap off, vert centre, horiz center')
1374
    heading_xf = xlwt.easyxf('font: bold on; align: wrap off, vert centre, horiz center')
1375
    
1375
    
1376
    excel_integer_format = '0'
1376
    excel_integer_format = '0'
1377
    integer_style = xlwt.XFStyle()
1377
    integer_style = xlwt.XFStyle()