Subversion Repositories SmartDukaan

Rev

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

Rev 14379 Rev 14380
Line 110... Line 110...
110
        print '\t',
110
        print '\t',
111
        print x.identifier,
111
        print x.identifier,
112
        col = get_mongo_connection().Catalog.MasterData.find({'identifier':x.identifier.strip()})
112
        col = get_mongo_connection().Catalog.MasterData.find({'identifier':x.identifier.strip()})
113
        print "count sku",
113
        print "count sku",
114
        print '\t',
114
        print '\t',
115
        print list(col)
-
 
116
        if len(list(col)) == 0:
115
        if len(list(col)) == 0:
117
            x.category = category
116
            x.category = category
118
            exceptionList.append(x)
117
            exceptionList.append(x)
119
        else:
118
        else:
120
            get_mongo_connection().Catalog.MasterData.update({'identifier':x.identifier.strip()}, {'$set' : {'rank':x.rank,'updatedOn':to_java_date(now)}}, multi=True)
119
            get_mongo_connection().Catalog.MasterData.update({'identifier':x.identifier.strip()}, {'$set' : {'rank':x.rank,'updatedOn':to_java_date(now)}}, multi=True)