From 5b2bed29ef469adc0d8898ecf019d8cb9d2cf5e0 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 20 Nov 2017 02:18:44 -0500 Subject: [PATCH] Removed redundant str() conversion --- src/main/cogs/booru.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/cogs/booru.py b/src/main/cogs/booru.py index 55eee60..f55b434 100644 --- a/src/main/cogs/booru.py +++ b/src/main/cogs/booru.py @@ -228,7 +228,7 @@ class MsG: embed.set_thumbnail(url=post['file_url']) embed.set_author(name=f'{u.get_aspectratio(post["width"], post["height"])} \N{ZERO WIDTH SPACE} {post["width"]} x {post["height"]}', url=f'https://e621.net/post?tags=ratio:{post["width"]/post["height"]:.2f}', icon_url=ctx.author.avatar_url) - embed.set_footer(text=str(post['score']), + embed.set_footer(text=post['score'], icon_url=self._get_score(post['score'])) # except @@ -343,7 +343,7 @@ class MsG: embed.set_image(url=post['file_url']) embed.set_author(name=f'{u.get_aspectratio(post["width"], post["height"])} \N{ZERO WIDTH SPACE} {post["width"]} x {post["height"]}', url=f'https://e621.net/post?tags=ratio:{post["width"]/post["height"]:.2f}', icon_url=ctx.author.avatar_url) - embed.set_footer(text=str(post['score']), + embed.set_footer(text=post['score'], icon_url=self._get_score(post['score'])) await dest.send('**Probable match**', embed=embed)