From f49f08fa3e1377828fa39f2212edfdd2085dcc61 Mon Sep 17 00:00:00 2001 From: Tom Casavant Date: Sun, 5 May 2024 13:51:42 -0400 Subject: [PATCH] Fixed pep8 issues --- bot.py | 5 ++++- gb.py | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 097aeec..6c69995 100644 --- a/bot.py +++ b/bot.py @@ -207,7 +207,10 @@ def run(self): # Probably add a check here if generating a gif is enabled (so we don't # have to generate one every single hour?) try: - previous_frames = self.gameboy.get_recent_frames("screenshots", 25, self.gameboy_config['gif_outline']) + previous_frames = self.gameboy.get_recent_frames("screenshots", + 25, + self.gameboy_config['gif_outline'] + ) previous_media = self.retry_mastodon_call( self.mastodon.media_post, retries=5, diff --git a/gb.py b/gb.py index f5963d4..b0f7033 100644 --- a/gb.py +++ b/gb.py @@ -81,7 +81,11 @@ def get_recent_frames(self, directory, num_frames=100, gif_outline='gameboy.png' count += 1 shutil.copy(image, os.path.join(script_dir, "tmp", f"{count}.png")) - self.build_gif(os.path.join(script_dir, "tmp"), fps=5, output_name="test.mp4", gif_outline=gif_outline) + self.build_gif(os.path.join(script_dir, "tmp"), + fps=5, + output_name="test.mp4", + gif_outline=gif_outline + ) self.empty_directory(os.path.join(script_dir, "tmp")) return os.path.join(script_dir, "test.mp4")