Make maxRange only display "km" after the whole thing

This commit is contained in:
cncfanatics
2010-09-05 09:55:20 +02:00
parent 99e112b68e
commit c05ae0c87c

View File

@@ -58,7 +58,7 @@ class MaxRange(ViewColumn):
falloff = "+%sm" % shorten(falloff, 3, 0, 3)
if maxRange:
return "%sm" % shorten(maxRange, 3, 0, 3) + falloff
return "%s" % shorten(maxRange, 3, 0, 3, unit=falloff == "") + falloff
else:
return "" + falloff