We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d09e1d + 7031205 commit 214a0c9Copy full SHA for 214a0c9
app/models/phase.rb
@@ -139,7 +139,7 @@ def num_answers_not_removed(plan)
139
end
140
141
def visibility_allowed?(plan)
142
- value = Rational(num_answered_questions(plan), plan.num_questions) * 100
+ value = Rational(num_answered_questions(plan), plan.num_questions).to_f * 100
143
value >= Rails.configuration.x.plans.default_percentage_answered.to_f
144
145
0 commit comments