Fix recommending too difficult questions if user has too low level
This commit is contained in:
@ -72,7 +72,7 @@ class ProxyExercise < ActiveRecord::Base
|
|||||||
|
|
||||||
# find exercises
|
# find exercises
|
||||||
potential_recommended_exercises = []
|
potential_recommended_exercises = []
|
||||||
exercises.where("expected_difficulty > 1").each do |ex|
|
exercises.where("expected_difficulty >= 1").each do |ex|
|
||||||
## find exercises which have only tags the user has already seen
|
## find exercises which have only tags the user has already seen
|
||||||
if (ex.tags - tags_user_has_seen).empty?
|
if (ex.tags - tags_user_has_seen).empty?
|
||||||
potential_recommended_exercises << ex
|
potential_recommended_exercises << ex
|
||||||
|
Reference in New Issue
Block a user