projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
a5e1b13
)
When Geonames has no data for a ZIP, use patron data even if --believegn
author
Ben Ostrowsky
<ben@esilibrary.com>
Mon, 25 Jul 2011 16:28:50 +0000 (16:28 +0000)
committer
Galen Charlton
<gmc@esilibrary.com>
Mon, 16 Jul 2012 15:32:35 +0000 (11:32 -0400)
enrich_zips
patch
|
blob
|
history
diff --git
a/enrich_zips
b/enrich_zips
index
3c52e24
..
22fca06
100755
(executable)
--- a/
enrich_zips
+++ b/
enrich_zips
@@
-69,7
+69,7
@@
while (<>) {
}
if ($makezips) {
- if ($city ne $dbcity || $state ne $dbstate) {
+ if (defined $zips{$zip} && ($city ne $dbcity || $state ne $dbstate)) {
if ($believegn) {
$city = $dbcity;
$state = $dbstate;