

@marshal_with(user_object_resource_fields)
def put(self, object_id, user_id):
    self.parser.add_argument('vote', type=int, required=True)
    self.parser.add_argument('review', type=text_type)
    args = self.parser.parse_args()
    osmanager = ObjectSubjectsManager(**args)
    somanager = SubjectObjectsManager(**args)
    self._perform_correction(object_id, user_id, args['vote'], args)
    osmanager.create(object_id=object_id, user_id=user_id, vote=args['vote'], review=args['review'])
    somanager.create(user_id=user_id, object_id=osmanager, timestamp=time())
    return get_user_object_reply(object_id=object_id, user_id=user_id, vote=osmanager.score(object_id=object_id, user_id=user_id), when=somanager.score(user_id=user_id, object_id=object_id), review=osmanager.review(object_id=object_id, user_id=user_id))

dataset/ETHPy150Open BuongiornoMIP/Reding/reding/resources.py VoteSummaryResource.put/VarMisuse@129/187 `object_id`->`osmanager`