12nd doesn't sound like a number to me Kappa

setting last was over complicated
if _get_suffix received 11, 12, or 13 it would return st, nd, and rd respectively. We read it eleventh not elvenirst <3
This commit is contained in:
Sitryk
2017-09-18 11:40:39 +12:00
committed by GitHub
parent 774cc620d5
commit b955c11b21

View File

@@ -169,7 +169,9 @@ class ImgWelcome:
def _get_suffix(self, num):
num = str(num)
last = num[len(num)-1:len(num)]
last = num[-1)]
if num[-2] == "1":
return "th"
if last == "1":
return "st"
elif last == "2":