fix newline
This commit is contained in:
parent
2d8ef4e0ce
commit
95f2fe551d
1 changed files with 4 additions and 1 deletions
5
main.py
5
main.py
|
@ -118,12 +118,15 @@ class Listener(StreamingClient):
|
||||||
if len(lastWord) > 0:
|
if len(lastWord) > 0:
|
||||||
infoLastWord += f"dernier mot : {lastWord.split()[-1:][0]}"
|
infoLastWord += f"dernier mot : {lastWord.split()[-1:][0]}"
|
||||||
else:
|
else:
|
||||||
infoLastWord += "tweet ignoré car trop de hashtags.\n"
|
infoLastWord += "tweet ignoré car trop de hashtags"
|
||||||
print(
|
print(
|
||||||
f"Tweet trouvé de {username} ({infoLastWord})...", end=" ")
|
f"Tweet trouvé de {username} ({infoLastWord})...", end=" ")
|
||||||
|
|
||||||
# Hashtag tweet
|
# Hashtag tweet
|
||||||
if len(lastWord) == 0:
|
if len(lastWord) == 0:
|
||||||
|
if keys["VERBOSE"]:
|
||||||
|
# Newline
|
||||||
|
print("")
|
||||||
return
|
return
|
||||||
|
|
||||||
# Fetch the last word of the tweet
|
# Fetch the last word of the tweet
|
||||||
|
|
Reference in a new issue