Fix tag score not being updated when the tag is trending (#11465)

lolsob-rspec
Eugen Rochko 2019-08-01 19:57:09 +02:00 committed by GitHub
parent 293f789239
commit bb86c642a4
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class TrendingTags
else
score = ((observed - expected)**2) / expected
added = redis.zadd(key, score, tag_id.to_s)
bump_tag_score!(tag_id) if added == 1
bump_tag_score!(tag_id) if added
end
redis.expire(key, EXPIRE_TRENDS_AFTER)