diff options
author | pdp8 <pdp8@pdp8.info> | 2023-07-21 15:34:09 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-07-21 15:34:09 +0200 |
commit | 5062145de3e3fe600415c8b8718c6a144f8ed939 (patch) | |
tree | 5f96d48955278de4c98ccfb186d66204d4626286 /client.rb | |
parent | 711bf7f86daddd0209244f9640d8a3f27d958e3a (diff) |
intermediary commit
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 = [] |