From e78a3a80ca347e4ca27a713ba349f33177dc1218 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 31 Aug 2010 22:43:21 +0100 Subject: [PATCH] Actually use the match, not just the object --- api/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handlers.py b/api/handlers.py index 4ff3761..c5b8655 100755 --- a/api/handlers.py +++ b/api/handlers.py @@ -157,7 +157,7 @@ class OpTimerHandler(BaseHandler): fid = re.search('topic=[\d]+', node.getAttribute('eventText')) if fid: - forumlink = 'http://forum.pleaseignore.com/index.php?%s' % id + forumlink = 'http://forum.pleaseignore.com/index.php?topic=%s' % fid.group(0) else: forumlink = '' #In case people forget to set a duration, we'll give a default of 1 hour