Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 994 Bytes

154.md

File metadata and controls

26 lines (14 loc) · 994 Bytes

Generate the votes

generate personal votes

hdo-folketingparser$ tools/convert-nsd-to-json.rb rawdata/Fra\ NSD/154.csv rawdata/Fra\ NSD/154_saksopplysninger.csv rawdata/Fra\ NSD/154_politikerarkiv_manually_augmented.csv hdo_site_reps.json rawdata/forslag-vedtak-2009-2011/propositions-2009-2010.json rawdata/saksid/Dagsorden\ 20009-2010-tabseparated.txt > /dev/shm/154.json

convert vedtak from xml to json

hdo-folketingparser/rawdata/forslag-vedtak-2009-2011$ ./vedtak_converter.rb > vedtak2009.json

generate non-personal votes

hdo-folketingparser$ tools/make_non_personal_votes_154.rb > /dev/shm/npv154.json

merge the two files

ruby -rjson -e "puts JSON.generate (JSON.parse(File.read('/dev/shm/154.json')) + (JSON.parse(File.read('/dev/shm/npv154.json'))))" > /dev/shm/all.json

Import them

import parliament issues from api

hdo-site$ script/import parliament-issues --session 2009-2010

import the json file

hdo-site$ script/import json /dev/shm/all.json