Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions GramAddict/core/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i also want to interact only pubic :D
correct the typo

extra={"color": f"{Fore.CYAN}"},
)
return profile_data, self.return_check_profile(
username, profile_data, SkipReason.IS_PUBLIC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the skip reason is now that is private

)
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(
Copy link
Contributor

@mastrolube mastrolube Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here you have to change the skip reason from private to public

Expand Down