Subversion Repositories SmartDukaan

Rev

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

Rev 16102 Rev 16103
Line 368... Line 368...
368
        print "Successfully sent email"
368
        print "Successfully sent email"
369
    except:
369
    except:
370
        traceback.print_exc()
370
        traceback.print_exc()
371
        print "Error: unable to send email."
371
        print "Error: unable to send email."
372
 
372
 
373
        
373
def resetRanks(category):
374
    
-
 
-
 
374
    get_mongo_connection().Catalog.MasterData.update({'rank':{'$gt':0},'source_id':5},{'$set' : {'rank':0,'updatedOn':to_java_date(now)}}, multi=True)
375
        
375
        
376
 
376
 
377
def main():
377
def main():
-
 
378
    if options.reset == 'True':
-
 
379
        resetRanks()
378
    scrapeBestSellers()
380
    scrapeBestSellers()
379
    if len(bundledProducts)>0 or len(exceptionList) > 0:
381
    if len(bundledProducts)>0 or len(exceptionList) > 0:
380
        sendMail()
382
        sendMail()
381
        
383
        
382
if __name__=='__main__':
384
if __name__=='__main__':