Skip to content

Commit 1f8d894

Browse files
author
Guilhem Saurel
committed
xkcd: please give my f-strings back T-T
1 parent a93b538 commit 1f8d894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xkcd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, bot):
2222

2323
def extract_data(self, html_content):
2424
data = loads(html_content)
25-
ret = u"Mandatory XKCD: {title} -- https://xkcd.com/{num}/ ({day}/{month}/{year})".format(data)
25+
ret = u"Mandatory XKCD: {title} -- https://xkcd.com/{num}/ ({day}/{month}/{year})".format(**data)
2626
return {
2727
'text': ret,
2828
'xhtml': u'<a href="https://xkcd.com/%i"><img alt="%s" src="%s" /></a>' % (data['num'], ret, data['img']),

0 commit comments

Comments
 (0)