Skip to content
Snippets Groups Projects
Commit 80abe74e authored by Francé Wilke's avatar Francé Wilke
Browse files

Expand CleanZone province code checks

parent 3aa65fcb
No related branches found
No related tags found
No related merge requests found
......@@ -224,11 +224,15 @@ func CleanZone(countryToClean, zoneToClean *string) (newCountry, newZone *string
if *newCountry == "South Africa" && zoneToClean != nil {
zone := *zoneToClean
// Gauteng - GT from uAfrica should be GP for Google
if zone == "GT" {
// Gauteng - GT should be GP for Google
zone = "GP"
} else if zone == "NT" {
} else if zone == "NT" || zone == "NL" {
// KZN - NT and NL should be KZN for Google
zone = "KZN"
} else if zone == "NP" {
// Limpopo - NP should be LP for Google
zone = "LP"
}
for _, province := range Provinces {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment