Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixes

  • Loading branch information...
commit b021346edd3fa46704dc5339378f0dfac7d20a23 1 parent 833d9fe
Rob McKinnon authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 parsers/ppcs/ppc_parser_base.rb
4 parsers/ppcs/ppc_parser_base.rb
@@ -41,7 +41,7 @@ def perform scrape_result
41 41 parse_resource resource, ppcs, not_processed
42 42 end
43 43 log_not_processed not_processed
44   - save_mps_info
  44 + save_mps_info ppcs
45 45 ppcs = check_one_ppc_per_constituency(ppcs)
46 46
47 47 @attributes ||= nil
@@ -257,7 +257,7 @@ def write ppcs, attributes
257 257 end
258 258
259 259 def twfy
260   - @twfy_key ||= open(File.expand_path(File.dirname(__FILE__)+ '/twfy_key.txt')).read.strip
  260 + @twfy_key ||= open(File.expand_path(RAILS_ROOT+ '/config/twfy_key.txt')).read.strip
261 261 @twfy ||= Twfy::Client.new(@twfy_key)
262 262 @twfy
263 263 end

0 comments on commit b021346

Please sign in to comment.
Something went wrong with that request. Please try again.