Skip to content

Commit c3e8173

Browse files
committed
adjust fields as found in submit application
1 parent 70d6ec2 commit c3e8173

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

selections/blueprints/application.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,18 @@ def get_application(app_id, info=None):
2424
flash('You already reviewed that application!')
2525
return redirect(url_for('main'))
2626

27+
fields = [{
28+
'value': request.form.get(crit.name),
29+
'weight': crit.weight,
30+
'max': crit.max_score,
31+
'min': crit.min_score} for crit in Criteria.query.filter_by(medium='Paper').all()]
32+
2733
return render_template(
2834
'vote.html',
2935
application=applicant_info,
3036
pdf_url='/application/content/'+app_id,
31-
info=info)
37+
info=info,
38+
fields=fields)
3239

3340
@app.route('/application/content/<app_id>')
3441
@auth.oidc_auth("default")

0 commit comments

Comments
 (0)