scout/adapter/mongo/user.py
def update_user(self, user_obj):
        """Update an existing user.
        
        
            Args:
                user_obj(dict)
        
            Returns:
                updated_user(dict)
        """
        LOG.info("Updating user %s", user_obj['_id'])
        updated_user = self.user_collection.find_one_and_replace(
            {'_id': user_obj['_id']},
            user_obj,
            return_document=pymongo.ReturnDocument.AFTER
        )
        return updated_user
def update_user(self, user_obj):
        """Update an existing user.
        
        
            Args:
                user_obj(dict)
        
            Returns:
                updated_user(dict)
        """
        LOG.info("Updating user %s", user_obj['_id'])
        updated_user = self.user_collection.find_one_and_replace(
            {'_id': user_obj['_id']},
            user_obj,
            return_document=pymongo.ReturnDocument.AFTER
        )
        return updated_user
def update_user ( self , user_obj ) : LOG . info ( "Updating user %s" , user_obj [ '_id' ] ) updated_user = self . user_collection . find_one_and_replace ( { '_id' : user_obj [ '_id' ] } , user_obj , return_document = pymongo . ReturnDocument . AFTER ) return updated_user
Update an existing user.
        
        
            Args:
                user_obj(dict)
        
            Returns:
                updated_user(dict)
Update an existing user . Args : user_obj ( dict ) Returns : updated_user ( dict )