Permalink
Browse files

sorting by score is too precise

  • Loading branch information...
1 parent 3168408 commit 5e6daae3eeeb4b048756b08dd18c3eaf8aef5d72 @gerad gerad committed Nov 13, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 models/person.coffee
View
@@ -217,11 +217,10 @@ PersonSchema.method 'nextTeam', (next) ->
]
# every third vote should be for something good
- if votedOn.length % 3 is 0
- dimensions = Vote.dimensions.concat('overall')
- dimension = dimensions[Math.floor(Math.random() * dimensions.length)]
-
- sort.unshift ["scores.#{dimension}", -1]
+ # if votedOn.length % 3 is 0
+ # dimensions = Vote.dimensions.concat('overall')
+ # dimension = dimensions[Math.floor(Math.random() * dimensions.length)]
+ # sort.unshift ["scores.#{dimension}", -1]
# not already voted on or skipped
filter._id = $nin: votedOn.concat @skippedTeamIds

0 comments on commit 5e6daae

Please sign in to comment.