Skip to content

Commit

Permalink
Merge pull request #77 from UCL-ARC/Shiying/small-fixes
Browse files Browse the repository at this point in the history
Shiying/small fixes
  • Loading branch information
shiyingwucl authored Jan 6, 2025
2 parents 3cb63a3 + 2479bc0 commit 60dc460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file modified requirements.txt
Binary file not shown.
6 changes: 4 additions & 2 deletions shortlister/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,10 @@ def rank_selected_applicants(self, k=None):
)
result = tournament.comparison(self.ctx.applicants, result)

ranked_list = tournament.rank(self.ctx.applicants, result)
print("RESULT:", [applicant.name for applicant in ranked_list])
# Condition to avoid exception (caused by empty result when quitting comparison with "q")
if result:
ranked_list = tournament.rank(self.ctx.applicants, result)
print("RESULT:", [applicant.name for applicant in ranked_list])
print()

# Utilities
Expand Down

0 comments on commit 60dc460

Please sign in to comment.