Skip to content

Commit

Permalink
Include ratings of completed services in export (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl authored and michielbdejong committed Jun 26, 2018
1 parent 927465a commit f581bb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/export_services_to_old_db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
# data['tosdr']['rated'] = service.grade
data['meta']['spec-version'] = '1.1'

if (service.is_comprehensively_reviewed && service.service_ratings)
data['tosdr']['rated'] = service.service_ratings
end

data['slug'] = (service.slug || service.name.split(' ').join('').split('.').join('-')).downcase

if (mapping['toId'][ (service.slug || service.name.split('.').join('-')).downcase ])
Expand Down

0 comments on commit f581bb6

Please sign in to comment.