From 90eaa81f2d3cdcf7af8f32298d77acfdf050be9a Mon Sep 17 00:00:00 2001 From: fgau Date: Wed, 18 Feb 2009 14:45:55 +0000 Subject: [PATCH] shows the contact for incoming calls git-svn-id: http://www.neo1973-germany.de/svn@248 46df4e5c-bc4e-4628-a0fc-830ba316316d --- epydial/epydial.py | 2 +- epydial/incall_screen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epydial/epydial.py b/epydial/epydial.py index cc2a772..61271fb 100755 --- a/epydial/epydial.py +++ b/epydial/epydial.py @@ -421,7 +421,7 @@ class PyneoController(object): def check_new_call(class_, newmap): def CallStatus(newmap): newmap = dedbusmap(newmap) - print '---', 'CallStatus' + print '---', 'CallStatus', newmap def CallRing(newmap): newmap = dedbusmap(newmap) diff --git a/epydial/incall_screen.py b/epydial/incall_screen.py index 7380161..f2c42ea 100644 --- a/epydial/incall_screen.py +++ b/epydial/incall_screen.py @@ -18,7 +18,7 @@ class InCallScreen(EdjeGroup): connection = connect(DB_FILE_PATH) cursor = connection.cursor() try: - cursor.execute("SELECT * FROM contacts WHERE mobil LIKE %s OR home LIKE %s OR work LIKE %s" % (number, number, number)) + cursor.execute("SELECT * FROM contacts WHERE mobil LIKE '%%%s%%' OR home LIKE '%%%s%%' OR work LIKE '%%%s%%'" % (number, number, number)) for row in cursor: CallerNamemap = row[0], row[1], row[2], row[3], row[4]