From e6e19cd5aa7daf354966feb56ac4608135bac162 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Fri, 26 Apr 2013 08:41:15 +0100 Subject: [PATCH] Generate html even if download_counts.json is missing This lets us test the html generation locally. --- html/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/index.html.erb b/html/index.html.erb index 09229c3d..128f1277 100644 --- a/html/index.html.erb +++ b/html/index.html.erb @@ -4,7 +4,7 @@ include ERB::Util archive_json = JSON.parse(File.open("../archive.json").read) recipe_json = JSON.parse(File.open("../recipes.json").read) - downloads_json = JSON.parse(File.open("../download_counts.json").read) + downloads_json = JSON.parse(File.open("../download_counts.json").read) rescue {} packages = (archive_json.keys & recipe_json.keys).sort.map do |pkgname| package = OpenStruct.new