From ac68d91950f06fdf1eaee5066704b23453442588 Mon Sep 17 00:00:00 2001 From: muskit <15199219+muskit@users.noreply.github.com> Date: Fri, 18 Aug 2023 01:36:38 -0700 Subject: [PATCH] fix comment --- src/talenttweet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/talenttweet.py b/src/talenttweet.py index 2f0bb3b..8cf228e 100644 --- a/src/talenttweet.py +++ b/src/talenttweet.py @@ -190,11 +190,11 @@ class TalentTweet: mention_usernames = [f'@/{util.get_username_with_company(x)}' for x in print_mention_ids] def rtm_msg(TEMPLATE: str, rtm_author_username: str): - if self.rt_author_id != -1: # rtm tweet is not from talent; rtm should be everyone + if self.rt_author_id != -1: # rtm tweet is from talent; rtm should be everyone rtm_names = [f'@/{util.get_username_with_company(x)}' for x in self.rt_mentions] between = f' from {rtm_author_username} ' ret += TEMPLATE.format(author_username, between, ", ".join(rtm_names)) - else: # rtm tweet is from a talent; rtm should just be cross company + else: # rtm tweet is not from a talent; rtm should just be cross company rtm_names = [f'@/{util.get_username_with_company(x)}' for x in self.rt_mentions if tl.is_cross_company(self.author_id, x)] ret += TEMPLATE.format(author_username, ' ', ", ".join(rtm_names))