mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 12:09:34 +02:00
Fixed from condition for domains by registrar data
This commit is contained in:
parent
85c0c28bcf
commit
440513f4ce
1 changed files with 1 additions and 2 deletions
|
@ -28,9 +28,8 @@ module Repp
|
||||||
end
|
end
|
||||||
def market_share_growth_rate
|
def market_share_growth_rate
|
||||||
registrars = ::Registrar.where(test_registrar: false).joins(:domains)
|
registrars = ::Registrar.where(test_registrar: false).joins(:domains)
|
||||||
.where(from_condition)
|
|
||||||
|
|
||||||
domains_by_rar = registrars.where(to_condition).group(:name).count
|
domains_by_rar = registrars.where(from_condition).where(to_condition).group(:name).count
|
||||||
prev_domains_by_rar = registrars.where(compare_to_condition).group(:name).count
|
prev_domains_by_rar = registrars.where(compare_to_condition).group(:name).count
|
||||||
|
|
||||||
set_zero_values!(domains_by_rar, prev_domains_by_rar)
|
set_zero_values!(domains_by_rar, prev_domains_by_rar)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue