Subversion Repositories SmartDukaan

Rev

Rev 20360 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20360 Rev 21008
Line 99... Line 99...
99
 
99
 
100
def getItemsToUpdate():
100
def getItemsToUpdate():
101
    global dealsCatalogIds
101
    global dealsCatalogIds
102
    global itemCatalogMap
102
    global itemCatalogMap
103
    toScrapMap = {}
103
    toScrapMap = {}
104
    bestSellers = list(get_mongo_connection().Catalog.MasterData.find({ "$or": [ { "category_id": 6} , { "rank":{"$gt":0} } ] }))
104
    bestSellers = list(get_mongo_connection().Catalog.MasterData.find({"source_id":4,"category_id":{"$in":[3,5,6]}}))
105
    for bestSeller in bestSellers: 
105
    for bestSeller in bestSellers: 
106
        saholicCatalogIds = list(get_mongo_connection().Catalog.MasterData.find({'skuBundleId':bestSeller['skuBundleId'],'source_id':4}))
106
        saholicCatalogIds = list(get_mongo_connection().Catalog.MasterData.find({'skuBundleId':bestSeller['skuBundleId'],'source_id':4}))
107
        for d in saholicCatalogIds:
107
        for d in saholicCatalogIds:
108
            if d['source_id']!=4:
108
            if d['source_id']!=4:
109
                continue
109
                continue