From 259aef4139252ba87299324da1e9bc62588c5a52 Mon Sep 17 00:00:00 2001 From: "Bhavik (XDope)" <58150973+xDope7137@users.noreply.github.com> Date: Mon, 26 Feb 2024 19:58:08 +0530 Subject: [PATCH] fixed skip_if_private and skip_if_public check --- GramAddict/core/filter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GramAddict/core/filter.py b/GramAddict/core/filter.py index f14e9a2d..af82a1d5 100644 --- a/GramAddict/core/filter.py +++ b/GramAddict/core/filter.py @@ -287,17 +287,17 @@ def check_profile(self, device, username): f"This account is {'private' if profile_data.is_private else 'public'}." ) - if profile_data.is_private and field_skip_if_public: + if profile_data.is_private and field_skip_if_private: logger.info( - f"@{username} has public account and you want to interact only private, skip.", + f"@{username} has private account and you want to interact only pubic, skip.", extra={"color": f"{Fore.CYAN}"}, ) return profile_data, self.return_check_profile( username, profile_data, SkipReason.IS_PUBLIC ) - elif profile_data.is_private and field_skip_if_private: + elif not profile_data.is_private and field_skip_if_public: logger.info( - f"@{username} has private account and you want to interact only public, skip.", + f"@{username} has public account and you want to interact only private, skip.", extra={"color": f"{Fore.CYAN}"}, ) return profile_data, self.return_check_profile(