Subversion Repositories SmartDukaan

Rev

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

Rev 15421 Rev 20046
Line 199... Line 199...
199
    # Run some tests
199
    # Run some tests
200
    DataService.initialize(db_hostname="localhost")
200
    DataService.initialize(db_hostname="localhost")
201
    currentTime = datetime.datetime.date(datetime.datetime.now())
201
    currentTime = datetime.datetime.date(datetime.datetime.now())
202
    previousDay = datetime.datetime(currentTime.year,currentTime.month, currentTime.day, 0, 0)- timedelta(days=1)
202
    previousDay = datetime.datetime(currentTime.year,currentTime.month, currentTime.day, 0, 0)- timedelta(days=1)
203
    mTo = session.query(Users.email).filter(Users.mobile_number == None).filter(Users.created >= previousDay).all()
203
    mTo = session.query(Users.email).filter(Users.mobile_number == None).filter(Users.created >= previousDay).all()
204
    #mTo = ["manish.sharma@shop2020.in", "manas.kapoor@shop2020.in"]
204
    #mTo = ["manish.sharma@shop2020.in", "rajender.singh@shop2020.in"]
205
    mFrom = "ProfitMandi<help@profitmandi.com>"
205
    mFrom = "ProfitMandi<help@profitmandi.com>"
206
    #mTo = ["manish.sharma@shop2020.in"]
206
    #mTo = ["manish.sharma@shop2020.in"]
207
    
207
    
208
    for receipient in mTo:
208
    for receipient in mTo:
209
        m = Email('localhost')
209
        m = Email('localhost')