Update analytics.rb
Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com>
This commit is contained in:
parent
85dfe2561b
commit
683a8aad99
@ -12,7 +12,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
alias generic_analytics_api_path analytics_api_path
|
alias generic_analytics_api_path analytics_api_path
|
||||||
|
|
||||||
sig { params(category: String, days: T.any(Integer, String)).returns(T::Hash[String, Integer]) }
|
sig { params(category: String, days: T.any(Integer, String)).returns(T::Hash[String, T.untyped]) }
|
||||||
def fetch(category, days)
|
def fetch(category, days)
|
||||||
Homebrew::API.fetch "#{analytics_api_path}/#{category}/#{days}d.json"
|
Homebrew::API.fetch "#{analytics_api_path}/#{category}/#{days}d.json"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user