Separate search_address backend from kivy
This commit is contained in:
parent
337c186865
commit
15630ed5a5
|
@ -194,3 +194,8 @@ class BMConfigParser(configparser.ConfigParser):
|
|||
if value < 0 or value > 8:
|
||||
return False
|
||||
return True
|
||||
|
||||
@staticmethod
|
||||
def search_addresses(address, searched_text):
|
||||
return [x for x in [BMConfigParser().get(address, 'label').lower(), address.lower()]
|
||||
if searched_text in x]
|
||||
|
|
Reference in New Issue
Block a user