mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-22 11:54:27 +02:00
polybar-weather: more compact
This commit is contained in:
parent
ac6410af1a
commit
8c7118ee35
1 changed files with 1 additions and 3 deletions
|
@ -29,9 +29,7 @@ def get_location():
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
(data["location"]["latitude"], data["location"]["longitude"]),
|
(data["location"]["latitude"], data["location"]["longitude"]),
|
||||||
data["city"]["names"]["en"]
|
(data.get("city") or data["country"])["names"]["en"],
|
||||||
if "city" in data
|
|
||||||
else data["country"]["names"]["en"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue