fix token checking (whoops)

This commit is contained in:
muskit committed 2023-08-20 23:26:53 -07:00
1 parent a4a5afbff2
commit edd907cd22
1 file changed
+4 -4
+4 -4
View File
@@ -63,14 +63,14 @@ class TalentTweet:
if mode == 'm': # mentions
mentions.append(int(tokens[i]))
continue
if mode == 'r': # reply_to
elif mode == 'r': # reply_to
reply_to = int(tokens[i])
continue
if mode == 'q': # quote_retweeted
elif mode == 'q': # quote_retweeted
quote_retweeted = int(tokens[i])
if mode == 'rt': # retweeted user
elif mode == 'rt': # retweeted user
rt = int(tokens[i])
if mode == 'rtm': # retweet/qrt mentions
elif mode == 'rtm': # retweet/qrt mentions
rtm.append(int(tokens[i]))
else:
raise ValueError(f'encountered invalid mode token {mode}')