Merge pull request #3 from Sitryk/patch-1

This commit is contained in:
aikaterna
2017-09-17 17:22:35 -07:00
committed by GitHub

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":