Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit e7fc61a

Browse files
committed
filtered out all of the tc challenges
1 parent e4561a2 commit e7fc61a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/controllers/challenges_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ def index
2727
params[:filters] = {:technology => params[:technology] } if params[:technology]
2828
params[:filters] = massage_old_params if params[:category]
2929
@challenges = Challenge.all params[:filters]
30+
# don't show any topcoder challenges
31+
@challenges.delete_if {|c| c.challenge_type == "TopCoder" }
3032
respond_to do |format|
3133
format.html
3234
format.json { render :json => @challenges }
33-
format.rss { render :rss => @challenges.delete_if {|c| c.challenge_type == "TopCoder" } }
35+
format.rss { render :rss => @challenges }
3436
end
3537
end
3638

0 commit comments

Comments
 (0)