From b91271256ee73e8080c7d61fb13d46dcf31f42eb Mon Sep 17 00:00:00 2001 From: Pooya Fekri Date: Mon, 12 Aug 2024 00:02:19 +0330 Subject: [PATCH] change tweet_ids to twitter_ids --- core/constraints/abstract.py | 2 +- core/constraints/twitter.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/constraints/abstract.py b/core/constraints/abstract.py index 284ad97..a47bce9 100644 --- a/core/constraints/abstract.py +++ b/core/constraints/abstract.py @@ -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 diff --git a/core/constraints/twitter.py b/core/constraints/twitter.py index 46a0656..862a67f 100644 --- a/core/constraints/twitter.py +++ b/core/constraints/twitter.py @@ -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) @@ -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(