Skip to content
Browse files

code changes for 113th congress

  • Loading branch information...
1 parent 1e7e6b8 commit e2513acfff8439f3cdb98809e90ba75f4033977e @aross aross committed Jan 4, 2013
View
9 bin/daily/daily_parse_amendments.rb
@@ -22,8 +22,13 @@
filename = "#{PATH}/#{amdt.number}.xml"
OCLogger.log "Parsing #{filename} (#{a_num} of #{amendments.size})"
- file = File.open(filename)
- doc = REXML::Document.new file
+ begin
+ file = File.open(filename)
+ doc = REXML::Document.new file
+ rescue
+ OCLogger.log "Error trying to open file: #{filename}"
+ next
+ end
root = doc.root
View
6 bin/daily/govtrack-rsync.sh
@@ -34,6 +34,6 @@ cd $data
echo "\n\nrsyncing govtrack at `date`"
rsync -avz govtrack.us::govtrackdata/us/people.xml ./govtrack/
-rsync -avz --exclude '*.pdf' --exclude '*.png' govtrack.us::govtrackdata/us/112 ./govtrack/
-rsync -avz --exclude '*.pdf' govtrack.us::govtrackdata/us/bills.text/112 ./govtrack/bills.text/
-rsync -avz govtrack.us::govtrackdata/us/bills.text.cmp/112 ./govtrack/bills.text.cmp/
+rsync -avz --exclude '*.pdf' --exclude '*.png' govtrack.us::govtrackdata/us/113 ./govtrack/
+rsync -avz --exclude '*.pdf' govtrack.us::govtrackdata/us/bills.text/113 ./govtrack/bills.text/
+rsync -avz govtrack.us::govtrackdata/us/bills.text.cmp/113 ./govtrack/bills.text.cmp/
View
12 bin/govtrack_parse_committee_schedules.rb
@@ -1,5 +1,7 @@
#!/usr/bin/env ruby
+require 'o_c_logger'
+
if __FILE__ == $0
require File.dirname(__FILE__) + '/../config/environment'
end
@@ -76,6 +78,10 @@ def text(text)
end
end
-source = File.open(path)
-listener = CommitteeScheduleListener.new
-REXML::Document.parse_stream(source, listener)
+begin
+ source = File.open(path)
+ listener = CommitteeScheduleListener.new
+ REXML::Document.parse_stream(source, listener)
+rescue
+ OCLogger.log "Could not parse committee schedule at #{path}"
+end
View
3 config/application_settings.yml
@@ -1,10 +1,11 @@
defaults: &defaults
current_opensecrets_cycle: '2010'
default_search_page_size: 10
- default_congress: 112
+ default_congress: 113
default_count_time: <%= 7.days %>
default_search_page_size: 10
available_congresses:
+ - 113
- 112
- 111
- 110

0 comments on commit e2513ac

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