Description:
removed admin from score board
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r256:7dba57af2448 - - 1 file changed: 1 inserted, 1 deleted

@@ -8,13 +8,13
8 problem_count = Problem.available_problem_count
8 problem_count = Problem.available_problem_count
9
9
10 @dead_users = []
10 @dead_users = []
11 @level_users = {}
11 @level_users = {}
12 @levels = (0..CODEJOM_MAX_ALIVE_LEVEL)
12 @levels = (0..CODEJOM_MAX_ALIVE_LEVEL)
13 @levels.each { |l| @level_users[l] = [] }
13 @levels.each { |l| @level_users[l] = [] }
14 - User.find(:all).each do |user|
14 + User.find(:all).find_all{|user| not user.admin? }.each do |user|
15 if user.codejom_status==nil
15 if user.codejom_status==nil
16 user.update_codejom_status
16 user.update_codejom_status
17 user.codejom_status(true) # reload
17 user.codejom_status(true) # reload
18 end
18 end
19
19
20 if not user.codejom_status.alive
20 if not user.codejom_status.alive
You need to be logged in to leave comments. Login now