removed space before km/h (#433)
This commit is contained in:
parent
5e2ae43c96
commit
6c7600c309
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue