diff options
Diffstat (limited to 'client.rb')
-rw-r--r-- | client.rb | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -140,6 +140,9 @@ end get path, provides: 'html' do protected! @dir = path.sub('/', '') + # collection = DirI# + # collection = Dir[File.join(@dir, 'object','*', '*.json')].collect { |f| JSON.parse(File.read(f)) } + @collection = Dir[File.join(@dir, 'create', '*.json')].collect { |f| JSON.parse(File.read(f))['object'] } @collection += Dir[File.join(@dir, 'announce', '*.json')].collect { |f| JSON.parse(File.read(f))['object'] } @threads = [] |