From 700879a94f414e7ce9533898e61bb6acd9469883 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Fri, 10 Feb 2023 21:47:12 +0000 Subject: [PATCH] Format Python code with psf/black push --- services/image_service.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/services/image_service.py b/services/image_service.py index 0089e7f..b52d259 100644 --- a/services/image_service.py +++ b/services/image_service.py @@ -263,7 +263,11 @@ class SaveView(discord.ui.View): class VaryButton(discord.ui.Button): def __init__(self, number, image_url, cog, converser_cog, custom_api_key): - super().__init__(style=discord.ButtonStyle.blurple, label="Vary " + str(number), custom_id="vary_button"+str(random.randint(10000000,99999999))) + super().__init__( + style=discord.ButtonStyle.blurple, + label="Vary " + str(number), + custom_id="vary_button" + str(random.randint(10000000, 99999999)), + ) self.number = number self.image_url = image_url self.cog = cog @@ -319,7 +323,11 @@ class VaryButton(discord.ui.Button): class SaveButton(discord.ui.Button["SaveView"]): def __init__(self, number: int, image_url: str): - super().__init__(style=discord.ButtonStyle.gray, label="Save " + str(number), custom_id="save_button"+str(random.randint(1000000,9999999))) + super().__init__( + style=discord.ButtonStyle.gray, + label="Save " + str(number), + custom_id="save_button" + str(random.randint(1000000, 9999999)), + ) self.number = number self.image_url = image_url