Skip to content

Commit bcfb9c7

Browse files
author
Guilhem Saurel
committed
xkcd: …
1 parent 1f8d894 commit bcfb9c7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

xkcd/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ def __init__(self, bot):
2323
def extract_data(self, html_content):
2424
data = loads(html_content)
2525
ret = u"Mandatory XKCD: {title} -- https://xkcd.com/{num}/ ({day}/{month}/{year})".format(**data)
26-
return {
27-
'text': ret,
28-
'xhtml': u'<a href="https://xkcd.com/%i"><img alt="%s" src="%s" /></a>' % (data['num'], ret, data['img']),
29-
}
26+
# TODO : TypeError: 'unicode' object does not support item assignment
27+
# return {
28+
# 'text': ret,
29+
# 'xhtml': u'<a href="https://xkcd.com/%i"><img alt="%s" src="%s" /></a>' % (data['num'], ret, data['img'])
30+
# }
31+
return ret
3032

3133

3234
class XKCDTest(ModuleTest):

0 commit comments

Comments
 (0)