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:
Michka Popoff 2025-01-26 16:30:30 +01:00
parent 3ebcbbb6b8
commit d436eb2e51
No known key found for this signature in database
GPG Key ID: 033D03F151030611

View File

@ -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)"