Subversion Repositories SmartDukaan

Rev

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

Rev 17013 Rev 17037
Line 173... Line 173...
173
            print productUrl, source_product_name, thumbnail, rank, available_price, identfier, inStock
173
            print productUrl, source_product_name, thumbnail, rank, available_price, identfier, inStock
174
            r_info = __RankInfo(identfier, rank, None , available_price, inStock, thumbnail, source_product_name, productUrl)
174
            r_info = __RankInfo(identfier, rank, None , available_price, inStock, thumbnail, source_product_name, productUrl)
175
            bestSellers.append(r_info)
175
            bestSellers.append(r_info)
176
                
176
                
177
def resetRanks(category_id):
177
def resetRanks(category_id):
178
    get_mongo_connection().Catalog.MasterData.update({'rank':{'$gt':0},'source_id':6,'category_id':category_id}, {'$set':{'rank':0}}, upsert=False, multi=True)
178
    get_mongo_connection().Catalog.MasterData.update({'rank':{'$gt':0},'source_id':7,'category_id':category_id}, {'$set':{'rank':0}}, upsert=False, multi=True)
179
 
179
 
180
def sendEmail():
180
def sendEmail():
181
    message="""<html>
181
    message="""<html>
182
            <body>
182
            <body>
183
            <h3>HomeShop18 Best Sellers not in master</h3>
183
            <h3>HomeShop18 Best Sellers not in master</h3>