Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (15 sloc) 412 Bytes
require 'popit'
apikey = ARGV[0] or abort "Usage: #{$0} <apikey>"
api = instance_name: 'eduskunta', apikey: apikey
cs = JSON.parse('coalitions.json'))
cs.each { |c|
ms = c.delete('memberships')
puts "Putting #{c}";
ms.each { |m|
m['organization_id'] = c['id'];
puts " Membership: #{m}"
You can’t perform that action at this time.