Commit 78e83406 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Debug / explain: show limit without decimals .0

parent 274cd2b8
......@@ -100,7 +100,10 @@ class Score(object):
if self.doubles:
parts.append(m18nc('Kajongg', '%1 doubles', self.doubles))
if self.limits:
parts.append(m18nc('Kajongg', '%1 limits', self.limits))
limits = str(self.limits)
if limits.endswith('.0'):
limits = limits[-2:]
parts.append(m18nc('Kajongg', '%1 limits', limits))
return u' '.join(parts)
def __eq__(self, other):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment