app/concepts/statistic/daily_team_statistic_synchronizer.rb
# iterate uniq combination of start & end_value of field (of model)
iterate uniq combination of start & end_value of field (of model)
iterate uniq combination of start & end_value of field ( of model )
def iterate_statistics_by_start_and_end_value stats, props
    stats.pluck(:field_start_value, :field_end_value).uniq.map do |start, ending|
      properties = props.merge(field_start_value: start, field_end_value: ending)
      relevant_statistics = stats.where(properties)
      iterate_statistics_by_date relevant_statistics, properties
    end
  end
def iterate_statistics_by_start_and_end_value stats , props stats . pluck ( :field_start_value , :field_end_value ) . uniq . map do | start , ending | properties = props . merge ( field_start_value : start , field_end_value : ending ) relevant_statistics = stats . where ( properties ) iterate_statistics_by_date relevant_statistics , properties end end
iterate uniq combination of start & end_value of field (of model)
iterate uniq combination of start & end_value of field ( of model )
stats
<not_specific>
props
<not_specific>