Browse Source

Use postcode finder for most recent election

tags/last-sinatra-version
Adrian Short 6 years ago
parent
commit
41b525bb4f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app.rb

+ 1
- 1
app.rb View File

@@ -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]


Loading…
Cancel
Save