~homeworkprod/byceps-bungalowcontest

4369dc7444b7eb6b3a3434323c82932bae73c4af — Jochen Kupperschmidt 2 months ago 62e467b
Use `find_contestant()`
1 files changed, 3 insertions(+), 1 deletions(-)

M byceps/blueprints/site/bungalow_contest/views.py
M byceps/blueprints/site/bungalow_contest/views.py => byceps/blueprints/site/bungalow_contest/views.py +3 -1
@@ 310,7 310,9 @@ def rate():
    if not value:
        abort(400, 'Missing value.')

    contestant = db.session.get(DbContestant, contestant_id)
    contestant = bungalow_contest_service.find_contestant(
        g.party_id, contestant_id
    )
    if not contestant:
        abort(400, 'Unknown contestant ID.')