

@marshal_with(object_resource_fields)
def get(self):
    args = self.parser.parse_args()
    amounts = ObjectsManager(**args).scoredrange(offset=args['offset'], size=args['size'], reverse=(args['sort'] == '-'))
    reply = []
    osmanager = ObjectSubjectsManager(**args)
    for (object_id, amount) in amounts:
        votes_no = osmanager.count(object_id=amounts)
        if votes_no:
            reply.append(dict(votes_no=votes_no, average=(amount / votes_no), amount=amount, object_id=object_id))
    return reply

dataset/ETHPy150Open BuongiornoMIP/Reding/reding/resources.py VotedListResource.get/VarMisuse@94/127 `object_id`->`amounts`