Skip to content

Commit

Permalink
Revert "Set session[:pg_id] if not set in implement route"
Browse files Browse the repository at this point in the history
This reverts commit b7eb0db.
  • Loading branch information
kiragrammel committed Aug 7, 2023
1 parent 6ffff51 commit 4334526
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/controllers/exercises_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,6 @@ def update_exercise_tips(exercise_tips, parent_exercise_tip_id, rank)
private :update_exercise_tips

def implement
unless session[:pg_id]
session[:pg_id] = params[:programming_group_id]
end
user_solved_exercise = @exercise.solved_by?(current_user)
count_interventions_today = UserExerciseIntervention.where(user: current_user).where('created_at >= ?',
Time.zone.now.beginning_of_day).count
Expand Down

0 comments on commit 4334526

Please sign in to comment.