analytics: fix type error
Fixes: Error: Parameter 'days': Expected type String, got type Integer with value 30 Caller: /opt/homebrew/Library/Homebrew/utils/analytics.rb:273 Definition: /opt/homebrew/Library/Homebrew/utils/analytics.rb:412 (Utils::Analytics.table_output)
This commit is contained in:
parent
3ebcbbb6b8
commit
d436eb2e51
@ -270,7 +270,7 @@ module Utils
|
||||
next if args.days.present? && args.days&.to_i != days
|
||||
next if args.category.present? && args.category != category
|
||||
|
||||
table_output(category, days, results)
|
||||
table_output(category, days.to_s, results)
|
||||
else
|
||||
total_count = results.values.inject("+")
|
||||
analytics << "#{number_readable(total_count)} (#{days} days)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user