mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Store user_accuracy_bonus to clarify explanations (#8165)
* FIX: Store user_accuracy_bonus to clarify explanations * Fixed specs from rounding change * migration cleanup * user_accuracy_bonus column not nullable
This commit is contained in:
committed by
Robin Ward
parent
4c9ed7bd85
commit
057f698e37
@@ -12,9 +12,4 @@ class ReviewableScoreExplanationSerializer < ApplicationSerializer
|
||||
:user_accuracy_bonus,
|
||||
:score
|
||||
)
|
||||
|
||||
def user_accuracy_bonus
|
||||
ReviewableScore.calc_user_accuracy_bonus(object.flags_agreed, object.flags_disagreed)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user