tgrez / sejm-ngram

visualization of trends in the use of words and phrases in the parliament
http://www.sejmotrendy.pl
12 stars 4 forks source link

Convert id string to id number in fixtures #72

Open ad-m opened 9 years ago

ad-m commented 9 years ago
find .  -type f -exec sed -r -i -e 's/"id":"([0-9]+?)"/"id":\1/g' {} \;
siemionides commented 8 years ago

@ad-m why do we need this?

ad-m commented 8 years ago

To jest stare. Chodziło o to, że mieliście jakieś JSON-y, które ładowaliście z tym, że pole ID miało postać pola tekstowego. Można było zmieniać loader, ale opisałem zmianę pliku z danymi JSON. Dużego pliku JSON.