catfacts: append fact ID
This commit is contained in:
@@ -10,7 +10,7 @@ def catfacts_ajax():
|
|||||||
def catfacts_get():
|
def catfacts_get():
|
||||||
fact = catfacts_ajax()
|
fact = catfacts_ajax()
|
||||||
try:
|
try:
|
||||||
return fact['factoid']
|
return "{0} (#{1:d})".format(fact['factoid'], fact['id'])
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return None
|
return None
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
|||||||
Reference in New Issue
Block a user