@target_required
    def Update(self, plugin_group, plugin_type, plugin_code, patch_data, target_id=None):
        query = self.GenerateQueryUsingSession({
                "plugin_group": plugin_group,
                "plugin_type": plugin_type,
                "plugin_code": plugin_code,},
            target_id)
        obj = query.first()
        if obj:
            try:
                if patch_data.get("user_rank", None):
                    if isinstance(patch_data["user_rank"], list):
                        patch_data["user_rank"] = patch_data["user_rank"][0]
                    obj.user_rank = int(patch_data["user_rank"])
                if patch_data.get("user_notes", None):
                    if isinstance(patch_data["user_notes"], list):
                        patch_data["user_notes"] = patch_data["user_notes"][0]
                    obj.user_notes = patch_data["user_notes"]
                self.db.session.merge(obj)
                self.db.session.commit()
            except __HOLE__:
                raise InvalidParameterType("Integer has to be provided for integer fields")
dataset/ETHPy150Open owtf/owtf/framework/db/poutput_manager.py/POutputDB.Update