ソースを参照

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


読み込み中…
キャンセル
保存