From 41b525bb4f038982d90418eff9b76c6f74c62797 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 4 May 2018 16:40:23 +0100 Subject: [PATCH] Use postcode finder for most recent election --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 6356f7d..2b464d7 100644 --- a/app.rb +++ b/app.rb @@ -65,7 +65,7 @@ helpers do end get '/' do - @election = Election.get(12) # FIXME magic number + @election = Election.last # most recent election @election_title = "#{@election.body.name} #{@election.kind} #{long_date(@election.d)}" if params[:postcode]