mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Repaired date_from param
This commit is contained in:
parent
925353e4ba
commit
b019314406
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@ module Repp
|
|||
end
|
||||
def market_share_distribution
|
||||
date_to = to_date(search_params[:end_date]).end_of_month
|
||||
date_from = to_date(search_params[:start_date] || '01.1991')
|
||||
date_from = to_date(search_params[:start_date] || '01.91')
|
||||
log_domain = ::Version::DomainVersion
|
||||
log_domains_del = log_domain.where('event = ? AND created_at > ?' \
|
||||
"AND object ->> 'created_at' <= ?" \
|
||||
|
@ -54,6 +54,7 @@ module Repp
|
|||
.map { |r| { "#{r.id}": r.name }.with_indifferent_access }
|
||||
.inject(:merge)
|
||||
|
||||
|
||||
result = grouped.map do |key, value|
|
||||
next unless registrar_names.key?(key)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue