summaryrefslogtreecommitdiff
path: root/client.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-07-21 15:34:09 +0200
committerpdp8 <pdp8@pdp8.info>2023-07-21 15:34:09 +0200
commit5062145de3e3fe600415c8b8718c6a144f8ed939 (patch)
tree5f96d48955278de4c98ccfb186d66204d4626286 /client.rb
parent711bf7f86daddd0209244f9640d8a3f27d958e3a (diff)
intermediary commit
Diffstat (limited to 'client.rb')
-rw-r--r--client.rb3
1 files changed, 3 insertions, 0 deletions
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 = []