[script] update get links

This commit is contained in:
Travis CI 2016-06-07 07:43:32 -07:00
parent 7dcfd8daf6
commit 3a59d88e80
1 changed files with 8 additions and 2 deletions

View File

@ -10,9 +10,15 @@ end
j = get_json
a = j['projects']
archived = apps_archived a
links = a.reject { |x| archived.include? x }.map { |y| y['source']}
active = a.reject { |x| archived.include? x }
links.each_with_index { |z, i| puts "#{i+1} #{z}"}
links = []
active.each do |z|
links.push z['source']
links.push z['itunes'] unless z['itunes'].nil?
end
links.each_with_index { |z, i| puts "#{i+1} #{z}" }
puts "Writing #{OUTPUT}"
File.open(OUTPUT, 'w') { |f| f.puts links }