Skip to content

Commit

Permalink
change tweet_ids to twitter_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
PooyaFekri committed Aug 11, 2024
1 parent ddd559b commit b912712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/constraints/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ConstraintParam(Enum):
TWEET_ID = "tweet_id"
TARGET_TWEET_ID = "target_tweet_id"
TWITTER_USERNAME = "twitter_username"
TWEET_IDS = "tweet_ids"
TWITTER_IDS = "twitter_ids"
FARCASTER_FIDS = "farcaster_fids"

@classmethod
Expand Down
4 changes: 2 additions & 2 deletions core/constraints/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def is_observed(self, *args, **kwargs) -> bool:

class IsFollowingTwitterBatch(ConstraintVerification):
app_name = ConstraintApp.TWITTER.value
_param_keys = [ConstraintParam.TWEET_IDS]
_param_keys = [ConstraintParam.TWITTER_IDS]

def __init__(self, user_profile) -> None:
super().__init__(user_profile)
Expand All @@ -230,7 +230,7 @@ def get_info(self, *args, **kwargs) -> None | dict:
return None

twitter_username = twitter.username
target_ids_list = self.param_values[ConstraintParam.TWEET_IDS.name]
target_ids_list = self.param_values[ConstraintParam.TWITTER_IDS.name]

rapid_twitter = RapidTwitter()
res = rapid_twitter.is_following_batch_with_cache(
Expand Down

0 comments on commit b912712

Please sign in to comment.