Browse files

fixes

  • Loading branch information...
1 parent 833d9fe commit b021346edd3fa46704dc5339378f0dfac7d20a23 @robmckinnon committed Mar 22, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 parsers/ppcs/ppc_parser_base.rb
View
4 parsers/ppcs/ppc_parser_base.rb
@@ -41,7 +41,7 @@ def perform scrape_result
parse_resource resource, ppcs, not_processed
end
log_not_processed not_processed
- save_mps_info
+ save_mps_info ppcs
ppcs = check_one_ppc_per_constituency(ppcs)
@attributes ||= nil
@@ -257,7 +257,7 @@ def write ppcs, attributes
end
def twfy
- @twfy_key ||= open(File.expand_path(File.dirname(__FILE__)+ '/twfy_key.txt')).read.strip
+ @twfy_key ||= open(File.expand_path(RAILS_ROOT+ '/config/twfy_key.txt')).read.strip
@twfy ||= Twfy::Client.new(@twfy_key)
@twfy
end

0 comments on commit b021346

Please sign in to comment.