Skip to content

Commit

Permalink
Update statuses.rb
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Sparrow <[email protected]>
  • Loading branch information
DismalShadowX authored May 1, 2024
1 parent ecc5512 commit f28ca81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/trends/statuses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ def refresh(at_time = Time.now.utc)

# Now that all trends have up-to-date scores, and all the ones below the threshold have
# been removed, we can recalculate their positions

Check failure on line 79 in app/models/trends/statuses.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Layout/TrailingWhitespace: Trailing whitespace detected. (https://rubystyle.guide#no-trailing-whitespace)
# Retrieve trending statuses with a limit of 10
trending_statuses = query.limit(10).to_arel.load

# Process the retrieved trending statuses
trending_statuses.each do |status|
# Process each status here

Check failure on line 85 in app/models/trends/statuses.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Layout/CommentIndentation: Incorrect indentation detected (column 4 instead of 6).
end
end
end

def request_review
StatusTrend.pluck('distinct language').flat_map do |language|
Expand Down

0 comments on commit f28ca81

Please sign in to comment.