From 29873331e66a236d04f2403736cc0065de24e3c0 Mon Sep 17 00:00:00 2001 From: Ali Parlakci Date: Thu, 23 Aug 2018 16:41:07 +0300 Subject: [PATCH] Typo fix --- script.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/script.py b/script.py index 77c5a6c..6ed0c11 100644 --- a/script.py +++ b/script.py @@ -635,13 +635,15 @@ def download(submissions): downloadedCount -= 1 if duplicates: - print("\n There was {} duplicates".format(duplicates)) + print(f"\nThere {'were' if duplicates > 1 else 'was'} " \ + f"{duplicates} duplicate{'s' if duplicates > 1 else ''}") if downloadedCount == 0: - print(" Nothing downloaded :(") + print("Nothing downloaded :(") else: - print(" Total of {} links downloaded!".format(downloadedCount)) + print(f"Total of {downloadedCount} " \ + f"link{'s' if downloadedCount > 1 else ''} downloaded!") def main():