From 6c7600c309634b5418460336b7df04259f152227 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Fri, 1 May 2020 18:48:19 +0200 Subject: [PATCH] removed space before km/h (#433) --- lib/view/line.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/view/line.py b/lib/view/line.py index 09e7529..2f410be 100644 --- a/lib/view/line.py +++ b/lib/view/line.py @@ -143,13 +143,13 @@ def render_wind(data, query): wind_direction = "" if query.get('use_ms_for_wind', False): - unit = ' m/s' + unit = 'm/s' wind = u'%s%.1f%s' % (wind_direction, float(data['windspeedKmph'])/36.0*10.0, unit) elif query.get('use_imperial', False): - unit = ' mph' + unit = 'mph' wind = u'%s%s%s' % (wind_direction, data['windspeedMiles'], unit) else: - unit = ' km/h' + unit = 'km/h' wind = u'%s%s%s' % (wind_direction, data['windspeedKmph'], unit) return wind