Revert changes for Python20 fishbowl experiment

* Show all RfCs again, even those with #loesung
This commit is contained in:
Sebastian Serth
2020-12-03 16:25:04 +01:00
parent 110b009480
commit 8ebe59b692
2 changed files with 1 additions and 4 deletions

View File

@ -18,7 +18,6 @@ class RequestForCommentsController < ApplicationController
.with_last_activity
.ransack(params[:q])
@request_for_comments = @search.result
.where("question NOT LIKE '%#loesung%'")
.joins(:exercise)
.where(exercises: {unpublished: false})
.includes(submission: [:study_group])
@ -99,8 +98,6 @@ class RequestForCommentsController < ApplicationController
@request_for_comment = RequestForComment.new(request_for_comment_params)
@request_for_comment.solved = true if @request_for_comment.question.include?('#loesung')
respond_to do |format|
if @request_for_comment.save
# create thread here and execute tests. A run is triggered from the frontend and does not need to be handled here.