Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions selections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def main(info=None):
avg += phone_r.score
averages[application.id] = avg
else:
averages[application.id] = "N/A"
averages[application.id] = 0
reviewers[application.id] = []

if member and member.team or is_evals or is_rtp:
Expand All @@ -79,7 +79,8 @@ def main(info=None):
applications = [{
"id": a.id,
"gender": a.gender,
"reviewed": a.id in reviewed_apps} for a in applicant.query.filter_by(team=member.team).all()]
"reviewed": a.id in reviewed_apps,
"review_count": submission.query.filter_by(application=a.id).count()} for a in applicant.query.filter_by(team=member.team).all()]

return render_template(
'index.html',
Expand Down
4 changes: 1 addition & 3 deletions selections/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<link rel="stylesheet"
href="https://s3.csh.rit.edu/csh-material-bootstrap/4.0.0/dist/csh-material-bootstrap.min.css"
media="screen">
<link rel="stylesheet" href="https://themeswitcher.csh.rit.edu/api/get" media="screen">

<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet"/>

Expand Down
2 changes: 1 addition & 1 deletion selections/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h4 class="card-title">Pending Applications</h4>
</thead>
<tbody>
{% for person in applications %}
{% if not person.reviewed %}
{% if not person.reviewed and person.review_count < 4%}
<tr>
<th>
<a href="/application/{{ person.id }}">
Expand Down