X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=bin%2Fsf1blocks2sql;h=42ea739797efeba97a60c69d240a69ae41ce745f;hb=a288d4500730745bdd483c33c02411b9237b4a9f;hp=1918a2956640e0f0daebc5d9f01f50e6cb811513;hpb=b6cea827835222aa38004dd599e24c3ecc5c596b;p=dead%2Fcensus-tools.git diff --git a/bin/sf1blocks2sql b/bin/sf1blocks2sql index 1918a29..42ea739 100755 --- a/bin/sf1blocks2sql +++ b/bin/sf1blocks2sql @@ -25,7 +25,7 @@ import SummaryFile1 if (len(sys.argv) < 3): print "Usage: %s " % sys.argv[0] - raise SystemExit(ExitCodes.NotEnoughArgs) + raise SystemExit(ExitCodes.NOT_ENOUGH_ARGS) geo_file_path = sys.argv[1] table_name = sys.argv[2] @@ -42,7 +42,7 @@ INSERT INTO %s (state, arealand, areawatr, total_area, - tiger_blkidfp00, + blkidfp00, pop100, population_density) @@ -60,6 +60,6 @@ for b in blocks: b.arealand, b.areawatr, b.total_area(), - b.tiger_blkidfp00(), + b.blkidfp00(), b.pop100, b.population_density())