mirror of
https://github.com/chubin/wttr.in
synced 2025-01-26 10:45:01 +00:00
Add region into location formatting
This commit is contained in:
parent
f3bce5f806
commit
e1adca3bf0
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ def location_processing(location, ip_addr):
|
||||||
if location:
|
if location:
|
||||||
location = '~' + location
|
location = '~' + location
|
||||||
if country:
|
if country:
|
||||||
location += ", %s" % country
|
location += ", %s, %s" % (region, country)
|
||||||
hide_full_address = not force_show_full_address
|
hide_full_address = not force_show_full_address
|
||||||
|
|
||||||
if location and not location.startswith('~'):
|
if location and not location.startswith('~'):
|
||||||
|
|
Loading…
Reference in a new issue