diff options
| author | 2020-03-04 14:27:48 +0000 | |
|---|---|---|
| committer | 2020-03-04 14:27:48 +0000 | |
| commit | 2dfaa7e162806d721ef3927c2623ca5a7d6e77f2 (patch) | |
| tree | 46290ce5597f580ed6d1f4d99bceca7c89716b9e | |
| parent | ban-format-account is no longer relevant (diff) | |
| signature | ||
KMh and MPh changed to km/h and mi/h
| -rw-r--r-- | modules/weather.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/weather.py b/modules/weather.py index 1677f990..25c2d096 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -74,8 +74,8 @@ class Module(ModuleManager.BaseModule): # wind speed is in metres per second - 3.6* for KMh wind_speed = 3.6*page["wind"]["speed"] - wind_speed_k = "%sKMh" % round(wind_speed, 1) - wind_speed_m = "%sMPh" % round(0.6214*wind_speed, 1) + wind_speed_k = "%skm/h" % round(wind_speed, 1) + wind_speed_m = "%smi/h" % round(0.6214*wind_speed, 1) if not nickname == None: location_str = "(%s) %s" % (nickname, location_str) |
