Merge pull request #14 from Fluffy-Bean/deepsource-transform-d96820e8

format code with black
This commit is contained in:
Michał Gdula 2023-09-11 20:10:07 +01:00 committed by GitHub
commit 7b3d0cb1ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ class E621(commands.Cog):
embed.add_field( embed.add_field(
name="Score", name="Score",
value=f"^ {response['posts'][0]['score']['up']} | " value=f"^ {response['posts'][0]['score']['up']} | "
f"v {response['posts'][0]['score']['down']}", f"v {response['posts'][0]['score']['down']}",
) )
embed.add_field( embed.add_field(
name="Favorites", name="Favorites",
@ -86,13 +86,14 @@ class E621(commands.Cog):
) )
embed.add_field( embed.add_field(
name="Tags", name="Tags",
value=", ".join(response["posts"][0]["tags"]["general"]) or "No tags provided.", value=", ".join(response["posts"][0]["tags"]["general"])
or "No tags provided.",
inline=False, inline=False,
) )
embed.set_footer( embed.set_footer(
text=f"ID: {response['posts'][0]['id']} | " text=f"ID: {response['posts'][0]['id']} | "
f"Created: {response['posts'][0]['created_at']}" f"Created: {response['posts'][0]['created_at']}"
) )
embed.set_image(url=response["posts"][0]["file"]["url"]) embed.set_image(url=response["posts"][0]["file"]["url"])