We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a93b538 commit 1f8d894Copy full SHA for 1f8d894
xkcd/__init__.py
@@ -22,7 +22,7 @@ def __init__(self, bot):
22
23
def extract_data(self, html_content):
24
data = loads(html_content)
25
- ret = u"Mandatory XKCD: {title} -- https://xkcd.com/{num}/ ({day}/{month}/{year})".format(data)
+ 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']),
0 commit comments