You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However if I pass the url for my default profile picture, it returns True.
So looks like this does not work as expected.
I found that if the profile image is default, it has isDefault field, and otherwise it does not or it is false.
I suggest that it should be judged by the isDefault field, like the logic for cover photos.
Describe the bug / How To Reproduce
My email is
[email protected]
.Looks like google returns the following 2 images for my account.
GHunt uses
is_default_profile_pic
to figure out whether the profile image is the default one or not.GHunt/ghunt/helpers/utils.py
Lines 57 to 66 in 40018b7
However if I pass the url for my default profile picture, it returns True.
So looks like this does not work as expected.
I found that if the profile image is default, it has
isDefault
field, and otherwise it does not or it is false.I suggest that it should be judged by the
isDefault
field, like the logic for cover photos.GHunt/ghunt/parsers/people.py
Lines 62 to 65 in 40018b7
Also the flag is not used by any other functions, so I think it can be removed.
The text was updated successfully, but these errors were encountered: