Skip to content

Commit

Permalink
datasets#50 additional safety: make sure jurisdiction codes are upper…
Browse files Browse the repository at this point in the history
…cased in db
  • Loading branch information
hannesgassert committed Oct 9, 2013
1 parent 94bb660 commit de72ab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function processFile(file, callback) {
// console.log(file, idx, key);
return;
}
record.jurisdiction = jurisdictions[record.jurisdiction_code.toUpperCase()];
record.jurisdiction_code = record.jurisdiction_code.toUpperCase();
record.jurisdiction = jurisdictions[record.jurisdiction_code];
record.slug = tokens[1];
record.type = 'body';
db.set(key, record);
Expand Down

0 comments on commit de72ab4

Please sign in to comment.