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]