Преглед на файлове

Title case for region names.

tags/v0.1^2
Ben Kurtovic преди 12 години
родител
ревизия
9bbc2b9e77
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +3
    -3
      earwigbot/commands/geolocate.py

+ 3
- 3
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"]


Зареждане…
Отказ
Запис