

def _remove_social_if_found(self, account_type):
    s = account_type.profile.SocialAccount()
    st = s.SocialType.Value(account_type.upper())
    for social_account in self.profile.social:
        if (social_account.type == st):
            self.profile.social.remove(social_account)
    self.db.profile.set_proto(self.profile.SerializeToString())

dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/market/profile.py Profile._remove_social_if_found/VarMisuse@14/22 `self`->`account_type`