From aefd3bbe3f94b221435ce410cf6f38b2df20a439 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Tue, 1 May 2012 23:52:19 -0400 Subject: [PATCH] catfacts: append fact ID --- modules/catfacts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/catfacts.py b/modules/catfacts.py index 0d9dc61..baea709 100644 --- a/modules/catfacts.py +++ b/modules/catfacts.py @@ -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: