shows the contact for incoming calls
git-svn-id: http://www.neo1973-germany.de/svn@248 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
09599aab2a
commit
90eaa81f2d
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue