Subversion Repositories SmartDukaan

Rev

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

Rev 17754 Rev 17755
Line 62... Line 62...
62
 
62
 
63
def getItemsToUpdate():
63
def getItemsToUpdate():
64
    global dealsCatalogIds
64
    global dealsCatalogIds
65
    global itemCatalogMap
65
    global itemCatalogMap
66
    toScrapMap = {}
66
    toScrapMap = {}
67
    bestSellers = list(get_mongo_connection().Catalog.MasterData.find({ "$or": [ { "category_id": 6} , { "rank":{"$gte":0} } ] }))
67
    bestSellers = list(get_mongo_connection().Catalog.MasterData.find({ "$or": [ { "category_id": 6} , { "rank":{"$gt":0} } ] }))
68
    for bestSeller in bestSellers: 
68
    for bestSeller in bestSellers: 
69
        saholicCatalogIds = list(get_mongo_connection().Catalog.MasterData.find({'skuBundleId':bestSeller['skuBundleId'],'source_id':4}))
69
        saholicCatalogIds = list(get_mongo_connection().Catalog.MasterData.find({'skuBundleId':bestSeller['skuBundleId'],'source_id':4}))
70
        for d in saholicCatalogIds:
70
        for d in saholicCatalogIds:
71
            if d['source_id']!=4:
71
            if d['source_id']!=4:
72
                continue
72
                continue