From 5062145de3e3fe600415c8b8718c6a144f8ed939 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Fri, 21 Jul 2023 15:34:09 +0200 Subject: intermediary commit --- client.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client.rb') diff --git a/client.rb b/client.rb index efc2f6d..75464c1 100644 --- a/client.rb +++ b/client.rb @@ -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 = [] -- cgit v1.2.3