Fixed score differences in ranking and editor panel

This commit is contained in:
Eduard Urbach 2018-03-10 17:32:28 +01:00
parent 51d2fb20a7
commit 64e0847815

View File

@ -73,6 +73,10 @@ func Editors(ctx *aero.Context) string {
score[entry.UserID] = current + entryScore score[entry.UserID] = current + entryScore
} }
for ignore := range arn.StreamIgnoreAnimeDifferences() {
score[ignore.CreatedBy] += arn.IgnoreAnimeDifferenceEditorScore
}
sort.Slice(users, func(i, j int) bool { sort.Slice(users, func(i, j int) bool {
scoreA := score[users[i].ID] scoreA := score[users[i].ID]
scoreB := score[users[j].ID] scoreB := score[users[j].ID]