Skip to content

Commit

Permalink
BBS changed the naming convention on their files, removing the C
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwhite committed Apr 3, 2012
1 parent 6e09b6f commit e861303
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/bbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ def regioncodes_cleanup(value, engine):
print "Inserting data from " + state + "..."
try:
engine.table.cleanup = Cleanup()
engine.insert_data_from_archive(self.urls["counts"] + "C" + shortstate + ".exe",
["C" + shortstate + ".csv"])
engine.insert_data_from_archive(self.urls["counts"] + shortstate + ".exe",
[shortstate + ".csv"])
except:
print "Failed bulk insert on " + state + ", inserting manually."
engine.connection.rollback()
engine.table.cleanup = Cleanup(correct_invalid_value,
nulls=['*'])
engine.insert_data_from_archive(self.urls["counts"] + "C" + shortstate + ".exe",
["C" + shortstate + ".csv"])
engine.insert_data_from_archive(self.urls["counts"] + shortstate + ".exe",
[shortstate + ".csv"])

except:
print "There was an error in " + state + "."
Expand Down

0 comments on commit e861303

Please sign in to comment.