add cross-agency case

This commit is contained in:
muskit
2024-04-26 00:15:32 -07:00
parent 8e163e26cf
commit 24877eb53e
+3 -1
View File
@@ -311,9 +311,11 @@ class TalentTweet:
rtm_msg(QUOTED_TWEET_MENTIONS_B, quoted_username) rtm_msg(QUOTED_TWEET_MENTIONS_B, quoted_username)
else: else:
ret += QUOTE_TWEET.format(author_username, quoted_username) ret += QUOTE_TWEET.format(author_username, quoted_username)
elif len(self.mentions) > 0: # standalone tweet elif len(self.mentions) > 0: # standalone tweet that mentions other
ret += TWEET.format(author_username, ", ".join(mention_usernames)) ret += TWEET.format(author_username, ", ".join(mention_usernames))
mention_usernames.clear() mention_usernames.clear()
elif len(self.rt_mentions) > 0: # reply to non-talent tweet that mentions B
rtm_msg(REPLY_TO_MENTION_B, "")
else: else:
raise ValueError( raise ValueError(
f"TalentTweet {self.tweet_id} has insufficient other parties" f"TalentTweet {self.tweet_id} has insufficient other parties"