From 9bbc2b9e77157e5926e3f062e810cad460d0f25c Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 5 Jul 2012 03:50:05 -0400 Subject: [PATCH] Title case for region names. --- earwigbot/commands/geolocate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/earwigbot/commands/geolocate.py b/earwigbot/commands/geolocate.py index 78a9111..370f26f 100644 --- a/earwigbot/commands/geolocate.py +++ b/earwigbot/commands/geolocate.py @@ -59,9 +59,9 @@ class Geolocate(Command): res = json.loads(query) try: - country = res["countryName"] - region = res["regionName"] - city = res["cityName"] + country = res["countryName"].title() + region = res["regionName"].title() + city = res["cityName"].title() latitude = res["latitude"] longitude = res["longitude"] utcoffset = res["timeZone"]