Fix conditional to detect retweets

This commit is contained in:
Felix Ableitner 2019-12-01 14:46:13 +01:00
parent 82e19ebab2
commit 2bbdfede11

View file

@ -72,7 +72,8 @@ for t in reversed(d.entries[0:5]):
print("ERROR: First Login Failed!") print("ERROR: First Login Failed!")
sys.exit(1) sys.exit(1)
if t.author != '(%s)' % twitter: # t.author is formatted like (@user) for some weird reason
if re.sub('[()@]', '', t.author) != twitter:
# skip retweets # skip retweets
continue continue