From 95f2fe551d6cc92678ae8e3fd89a1807d45a8820 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 8 Aug 2022 02:49:39 +0200 Subject: [PATCH] fix newline --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 77a1dd3..07b3f63 100644 --- a/main.py +++ b/main.py @@ -118,12 +118,15 @@ class Listener(StreamingClient): if len(lastWord) > 0: infoLastWord += f"dernier mot : {lastWord.split()[-1:][0]}" else: - infoLastWord += "tweet ignoré car trop de hashtags.\n" + infoLastWord += "tweet ignoré car trop de hashtags" print( f"Tweet trouvé de {username} ({infoLastWord})...", end=" ") # Hashtag tweet if len(lastWord) == 0: + if keys["VERBOSE"]: + # Newline + print("") return # Fetch the last word of the tweet