[script] Create list category
This commit is contained in:
parent
2837e185ef
commit
c777aca9df
|
@ -0,0 +1,9 @@
|
|||
require 'json'
|
||||
|
||||
c = File.read 'contents.json'
|
||||
j = JSON.parse c
|
||||
|
||||
c = j['categories']
|
||||
|
||||
c.sort_by { |h| h['title']}
|
||||
.each { |x| puts x['id']}
|
Loading…
Reference in New Issue