Fix conditional to detect retweets
This commit is contained in:
parent
82e19ebab2
commit
2bbdfede11
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ for t in reversed(d.entries[0:5]):
|
|||
print("ERROR: First Login Failed!")
|
||||
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
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue