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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user