From b60c7477363238bd903cec88f01227a6a6e9348b Mon Sep 17 00:00:00 2001 From: Ben Ostrowsky Date: Mon, 25 Jul 2011 16:28:50 +0000 Subject: [PATCH 1/1] When Geonames has no data for a ZIP, use patron data even if --believegn --- enrich_zips | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/enrich_zips b/enrich_zips index 3c52e24..22fca06 100755 --- 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; -- 1.7.2.5