Skip to content

Commit

Permalink
Make clashfinder input stable
Browse files Browse the repository at this point in the history
Without this you can end up with talk clashes being reported both ways
round depending on how the talks were favourited by users.
  • Loading branch information
Jonty committed May 21, 2024
1 parent bdb5958 commit 37d4640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cfp_review/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ def clashfinder():
user_counts[user].append(proposal)

for proposals in user_counts.values():
popularity.update(combinations(proposals, 2))
popularity.update(combinations(sorted(proposals), 2))

clashes = []
offset = 0
Expand Down

0 comments on commit 37d4640

Please sign in to comment.