Browse Source

Title case for region names.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
9bbc2b9e77
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      earwigbot/commands/geolocate.py

+ 3
- 3
earwigbot/commands/geolocate.py View File

@@ -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"]


Loading…
Cancel
Save