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
4 changes: 4 additions & 0 deletions selections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def main(info=None):

averages = {}
reviewers = defaultdict(list)
evaluated = {}
for application in all_applications:
score_sum = 0
results = submission.query.filter_by(
Expand All @@ -71,6 +72,7 @@ def main(info=None):
else:
averages[application.id] = 0
reviewers[application.id] = []
evaluated[application.id] = bool(submission.query.filter_by(application=application.id, medium="Phone").all())

if member and member.team or is_evals or is_rtp:
team = members.query.filter_by(team=member.team)
Expand All @@ -80,6 +82,7 @@ def main(info=None):
"id": a.id,
"gender": a.gender,
"reviewed": a.id in reviewed_apps,
"interview": a.phone_int,
"review_count": submission.query.filter_by(application=a.id).count()} for a in applicant.query.filter_by(team=member.team).all()]

return render_template(
Expand All @@ -91,6 +94,7 @@ def main(info=None):
all_applications=all_applications,
all_users=all_users,
averages=averages,
evaluated=evaluated,
reviewers=reviewers)


Expand Down
6 changes: 6 additions & 0 deletions selections/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ <h4 class="card-title">All Applications</h4>
<th>ID</th>
<th>Gender</th>
<th>Reviewers</th>
<th>Interview</th>
<th>Score</th>
</tr>
</thead>
Expand All @@ -88,6 +89,11 @@ <h4 class="card-title">All Applications</h4>
data-placement="top" title="{{ member }}">
{% endfor %}
</td>
<td>
{% if evaluated[application.id] %}
<i class="fas fa-check"></i>
{% endif %}
</td>
<td>{{ averages[application.id] }}</td>
</tr>
{% endfor %}
Expand Down