Subversion Repositories SmartDukaan

Rev

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

Rev 19591 Rev 19592
Line 139... Line 139...
139
        if rank > 100:
139
        if rank > 100:
140
            return
140
            return
141
        master = get_mongo_connection(host=dtr_host).Catalog.MasterData.find_one({'skuBundleId':i[0]})
141
        master = get_mongo_connection(host=dtr_host).Catalog.MasterData.find_one({'skuBundleId':i[0]})
142
        if master is None or master['category_id']!=6:
142
        if master is None or master['category_id']!=6:
143
            continue
143
            continue
144
        get_mongo_connection(host=dtr_host).Catalog.MasterData.update({'skuBundleId':master['skuBundleId']},{"$set":{"rank":rank}},upsert=False,multi=True)
144
        get_mongo_connection(host=dtr_host).Catalog.MasterData.update({'skuBundleId':master['skuBundleId']},{"$set":{"rank":rank,'updatedOn':to_java_date(datetime.now())}},upsert=False,multi=True)
145
        rank = rank + 1
145
        rank = rank + 1
146
        
146
        
147
 
147
 
148
def main():
148
def main():
149
    createViewsMap()
149
    createViewsMap()