From 1066d2d8fa40e29f2f2be76a4ccfd72b72ba755d Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 23 Sep 2018 08:42:24 +0100 Subject: [PATCH] Remove full CSV file download Can be downloaded from https://morph.io/adrianshort/inlink-scraper --- lib/site.rb | 4 ---- views/index.haml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/lib/site.rb b/lib/site.rb index 164fade..0a104cb 100644 --- a/lib/site.rb +++ b/lib/site.rb @@ -13,10 +13,6 @@ class Site # Summary CSV file Petrify.write_csv('.', 'inlink-summary', summary) - # Full CSV file - apps = ScraperWiki.select("* from applications") - Petrify.write_csv('.', 'inlink-full', apps) - # New applications page apps = ScraperWiki.select("* from `applications` order by date_received desc limit 30") Petrify.write_page('new-applications', 'new-applications', { apps: apps }) diff --git a/views/index.haml b/views/index.haml index cacc7db..3657721 100644 --- a/views/index.haml +++ b/views/index.haml @@ -6,10 +6,6 @@ - csv_fn = 'inlink-summary.csv' %a.button{ :href => csv_fn, :download => csv_fn } Download summary CSV data -   - - csv_fn = 'inlink-full.csv' - %a.button{ :href => csv_fn, :download => csv_fn } - Download full CSV data %table %thead