From 3a9b0987162526abdfb97fd442b8eae77f098af0 Mon Sep 17 00:00:00 2001 From: Cyteon <129582290+Cyteon@users.noreply.github.com> Date: Tue, 7 May 2024 20:55:18 +0200 Subject: [PATCH] Cleanup run_many() function --- main.py | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/main.py b/main.py index f01fa94..9242e58 100755 --- a/main.py +++ b/main.py @@ -66,21 +66,13 @@ def main(POST_ID=None) -> None: def run_many(times) -> None: - if not settings.config["settings"]["mememode"]: - for x in range(1, times + 1): - print_step( - f'on the {x}{("th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th")[x % 10]} iteration of {times}' - ) # correct 1st 2nd 3rd 4th 5th.... - main() - Popen("cls" if name == "nt" else "clear", shell=True).wait() - else: - for x in range(1, times + 1): - print_step( - f'on the {x}{("th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th")[x % 10]} iteration of {times}' - ) # correct 1st 2nd 3rd 4th 5th.... - main() - Popen("cls" if name == "nt" else "clear", shell=True).wait() - + for x in range(1, times + 1): + print_step( + f'on the {x}{("th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th")[x % 10]} iteration of {times}' + ) # correct 1st 2nd 3rd 4th 5th.... + main() + Popen("cls" if name == "nt" else "clear", shell=True).wait() + if settings.config["settings"]["mememode"]: make_meme_video() def make_meme_video():