Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #61 from OzymandiasTheGreat/master
Browse files Browse the repository at this point in the history
Fixed accented character bug and changed the port to 8013
  • Loading branch information
Steeven Lopes authored Apr 27, 2017
2 parents 4dfbedf + 84cbbfb commit e057f5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self):
self.auth_base_url = 'https://accounts.google.com/o/oauth2/v2/auth'
self.token_url = 'https://www.googleapis.com/oauth2/v4/token'
self.scope = ['https://www.googleapis.com/auth/contacts.readonly']
self.local_address = ('127.0.0.1', '8000')
self.local_address = ('127.0.0.1', '8013')
try:
with open(os.path.join(data_dir, 'token.json')) as fd:
self.token = json.loads(fd.read())
Expand Down Expand Up @@ -262,6 +262,7 @@ def get_completion(self):
def match_contact(self, completion, key, tree_iter, udata):

model = completion.get_model()
key = self.phone_no.get_text().casefold()
matches = (any(token.startswith(key)
for token in model[tree_iter][1].casefold().split())
for key in key.split())
Expand Down

0 comments on commit e057f5e

Please sign in to comment.