Skip to content

Commit

Permalink
2 is the loneliest number
Browse files Browse the repository at this point in the history
  • Loading branch information
Visnu Pitiyanuvath committed Aug 4, 2011
1 parent 35bc996 commit de0aae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/team.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ TeamSchema.method 'votes', (next) ->
TeamSchema.static 'canRegister', (next) -> TeamSchema.static 'canRegister', (next) ->
Team.count {}, (err, count) -> Team.count {}, (err, count) ->
return next err if err return next err if err
max = 315 + 1 # +1 because team fortnight labs doesn't count max = 317 + 1 # +1 because team fortnight labs doesn't count
next null, count < max, max - count next null, count < max, max - count


TeamSchema.static 'uniqueName', (name, next) -> TeamSchema.static 'uniqueName', (name, next) ->
Expand Down

0 comments on commit de0aae8

Please sign in to comment.