Removed search_address method as staticmethod

This commit is contained in:
shekhar-cis 2022-05-12 15:45:33 +05:30
parent f0c7c51cdd
commit c07a251469
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -196,10 +196,10 @@ class BMConfigParser(configparser.ConfigParser):
return False return False
return True return True
@staticmethod def search_addresses(self, address, searched_text):
def search_addresses(address, searched_text):
"""Return the searched label of MyAddress""" """Return the searched label of MyAddress"""
return [x for x in [BMConfigParser().get(address, 'label').lower(), # import pdb; pdb.set_trace()
return [x for x in [self.get(address, 'label').lower(),
address.lower()] if searched_text in x] address.lower()] if searched_text in x]
def disable_address(self, address): def disable_address(self, address):