Package downloading now mostly working

This commit is contained in:
2021-11-16 09:34:41 -06:00
parent d0d8683c4e
commit db97b5a3ab
3 changed files with 79 additions and 6 deletions

View File

@@ -153,7 +153,8 @@ class W3DHub
if response.status == 200
hash = JSON.parse(response.body, symbolize_names: true)
packages = hash[:packages].map { |pkg| Package.new(pkg) }
packages.first if packages.size == 1
return packages.first if packages.size == 1
return packages
else
false
end