From e2459f0d6c6afe604a19bb27658390ac0220f0dd Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 23 Feb 2022 17:47:12 -0600 Subject: [PATCH] Change quote syntax --- commands/booru.py | 2 +- commands/master.py | 2 +- tools/scraper.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/booru.py b/commands/booru.py index e96f8a8..aa6b54f 100644 --- a/commands/booru.py +++ b/commands/booru.py @@ -104,7 +104,7 @@ async def _reverse(context, urls, *, selector=None): url=match["url"], color=context.get_guild().get_my_member().get_top_role().color if context.get_guild() else "#1a1a1a", ) - .set_author(name=f'{match["similarity"]}% Match') + .set_author(name=f"{match['similarity']}% Match") .set_image(match["thumbnail"]) .set_footer(match["source"]) ) diff --git a/commands/master.py b/commands/master.py index f0b4b71..c526629 100644 --- a/commands/master.py +++ b/commands/master.py @@ -20,7 +20,7 @@ async def master(context): extensions = [os.path.splitext(extension)[1][1:] for extension in context.bot.extensions] await context.respond( - f'**Reloaded `{"`, `".join(extensions[:-1])}`, and `{extensions[-1]}` for you, master.**' + f"**Reloaded `{'`, `'.join(extensions[:-1])}`, and `{extensions[-1]}` for you, master.**" ) case "sleep": await context.respond("**Goodnight, master.**") diff --git a/tools/scraper.py b/tools/scraper.py index 6420072..4ea675d 100644 --- a/tools/scraper.py +++ b/tools/scraper.py @@ -48,7 +48,7 @@ async def _kheina(url): return { "url": content["results"][0]["sources"][0]["source"], "artist": content["results"][0]["sources"][0]["artist"] or "Unknown", - "thumbnail": f'https://cdn.kheina.com/file/kheinacom/{content["results"][0]["sources"][0]["sha1"]}.jpg', + "thumbnail": f"https://cdn.kheina.com/file/kheinacom/{content['results'][0]['sources'][0]['sha1']}.jpg", "similarity": round(content["results"][0]["similarity"]), "source": tldextract.extract(content["results"][0]["sources"][0]["source"]).domain, }