Change column name emoji_reactions_count_per_account to emoji_reaction_accounts_count
This commit is contained in:
parent
b8aefa0930
commit
81f32dee4f
5 changed files with 19 additions and 19 deletions
|
@ -97,7 +97,7 @@ class Trends::Statuses < Trends::Base
|
|||
def calculate_scores(statuses, at_time)
|
||||
items = statuses.map do |status|
|
||||
expected = 1.0
|
||||
observed = (status.reblogs_count + status.favourites_count + status.emoji_reactions_count_per_account * 0.8).to_f
|
||||
observed = (status.reblogs_count + status.favourites_count + status.emoji_reaction_accounts_count * 0.8).to_f
|
||||
|
||||
score = if expected > observed || observed < options[:threshold]
|
||||
0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue