Improve weather formatting

Example: `14.8km/h/9.2mi/h` → `14.8km/h (9.2mi/h)`
This commit is contained in:
Shreyas Minocha 2020-11-27 02:32:40 +05:30
parent b15cba2ca2
commit 86520b31f9
No known key found for this signature in database
GPG key ID: 3740FE9FC5772203

View file

@ -81,7 +81,7 @@ class Module(ModuleManager.BaseModule):
location_str = "(%s) %s" % (nickname, location_str)
event["stdout"].write(
"%s | %s/%s | %s | Humidity: %s | Wind: %s/%s" % (
"%s | %s/%s | %s | Humidity: %s | Wind: %s (%s)" % (
location_str, celsius, fahrenheit, description, humidity,
wind_speed_k, wind_speed_m))
else: