Subversion Repositories SmartDukaan

Rev

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

Rev 20474 Rev 22434
Line 145... Line 145...
145
            for data in r :
145
            for data in r :
146
                worksheet.write(row, column, int(data) if type(data) is float else data, datetime_format if type(data) is datetime.datetime else  date_format if type(data) is datetime.date else default_format)
146
                worksheet.write(row, column, int(data) if type(data) is float else data, datetime_format if type(data) is datetime.datetime else  date_format if type(data) is datetime.date else default_format)
147
                column += 1
147
                column += 1
148
        workbook.save(TMP_FILE)
148
        workbook.save(TMP_FILE)
149
        generateGroupSegmentationReport(workbook)
149
        generateGroupSegmentationReport(workbook)
150
        sendmail(["rajneesh.arora@saholic.com","khushal.bhatia@saholic.com"], "", TMP_FILE, SUBJECT)
150
        sendmail(["amit.gupta@shop2020.in"], "", TMP_FILE, SUBJECT)
151
        #sendmail([], "", TMP_FILE, SUBJECT)
151
        #sendmail([], "", TMP_FILE, SUBJECT)
152
    except:
152
    except:
153
        traceback.print_exc()
153
        traceback.print_exc()
154
        print "Could not create report"
154
        print "Could not create report"
155
 
155