catfacts: append fact ID

master
mutantmonkey 2012-05-01 23:52:19 -04:00
parent a72baa47b2
commit aefd3bbe3f
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ def catfacts_ajax():
def catfacts_get():
fact = catfacts_ajax()
try:
return fact['factoid']
return "{0} (#{1:d})".format(fact['factoid'], fact['id'])
except IndexError:
return None
except TypeError: