Skip to content

Commit e62704a

Browse files
k86tdelulcao
andauthored
* Fixed InstaPy#6417 * Updating relationship_tools.py Following Black formatting guidelines. * Update CHANGELOG.md * Update __init__.py Co-authored-by: Daniel Carvallo <[email protected]>
1 parent 8aaf40a commit e62704a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ The **goal** of this file is explaining to the users of our project the notable
55
_The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)_
66

77

8+
## [0.6.15] - 2021-12-02
9+
10+
### Fixed
11+
12+
- Fixed `relationship_tools` to check if not `username == self_username`
13+
814
## [0.6.14] - 2021-10-18
915

1016
### Added

instapy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# flake8: noqa
22

33
# __variables__ with double-quoted values will be available in setup.py
4-
__version__ = "0.6.14"
4+
__version__ = "0.6.15"
55

66
from .instapy import InstaPy
77
from .util import smart_run

instapy/relationship_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def get_followers(
7979

8080
is_private = is_private_profile(browser, logger, following_status == "Following")
8181

82-
if (
82+
if not username == self_username and (
8383
is_private is None
8484
or (is_private is True and following_status not in ["Following", True])
8585
or (following_status == "Blocked")
@@ -372,7 +372,7 @@ def get_following(
372372
)
373373

374374
is_private = is_private_profile(browser, logger, following_status == "Following")
375-
if (
375+
if not username == self_username and (
376376
is_private is None
377377
or (is_private is True and following_status not in ["Following", True])
378378
or (following_status == "Blocked")

0 commit comments

Comments
 (0)