Subversion Repositories SmartDukaan

Rev

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

Rev 14544 Rev 14585
Line 101... Line 101...
101
            column = 0
101
            column = 0
102
            for data in r :
102
            for data in r :
103
                worksheet.write(row, column, int(data) if type(data) is float else data, datetime_format if type(data) is datetime.datetime else default_format)
103
                worksheet.write(row, column, int(data) if type(data) is float else data, datetime_format if type(data) is datetime.datetime else default_format)
104
                column += 1
104
                column += 1
105
        workbook.save(TMP_FILE)
105
        workbook.save(TMP_FILE)
106
        sendmail(["amit.gupta@shop2020.in"], "", TMP_FILE, SUBJECT)
106
        sendmail(["rajneesh.arora@saholic.com", "amit.sirohi@saholic.com", "chaitnaya.vats@saholic.com"], "", TMP_FILE, SUBJECT)
107
    except:
107
    except:
108
        print "Could not create report"
108
        print "Could not create report"
109
 
109
 
110
def sendmail(email, message, fileName, title):
110
def sendmail(email, message, fileName, title):
111
    if email == "":
111
    if email == "":