class CompletenessMetricWorker < MetricsWorker

  def perform(repository_name)
    repository = Repository.find repository_name
    schema = JSON.parse File.read 'public/ckan-schema.json'
    schema = symbolize_keys schema
    metric = Metrics::Completeness.new
    compute(repository, metric)
  end

end

class CompletenessMetricWorker < MetricsWorker

  def perform(repository_name)
    repository = Repository.find repository_name
    schema = JSON.parse File.read 'public/ckan-schema.json'
    schema = self.class.symbolize_keys schema
    metric = Metrics::Completeness.new
    compute(repository, metric, schema)
  end

end

Add missing argument for completeness worker
Add missing argument for completeness worker

There was a missing argument, as well as as a missing call to self.class
for symbolize_keys which prevented the completeness metric from working.
This commit fixes that.

Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
