

def update_object(self, uid, token, obj_id, content):
    '\n        Add a object for a user.\n\n        :param content: Some content.\n        :param obj_id: Identifier of the object.\n        :param uid: User id.\n        :param token: Access token.\n        '
    database = self.client[uid]
    database.authenticate(uid, token)
    collection = database['data_objects']
    collection.update({
        '_id': bson.ObjectId(token),
    }, {
        '$set': {
            'value': content,
        },
    }, upsert=False)

dataset/ETHPy150Open tmetsch/suricate/suricate/data/object_store.py MongoStore.update_object/VarMisuse@57/142 `obj_id`->`token`