shows the contact for incoming calls

git-svn-id: http://www.neo1973-germany.de/svn@248 46df4e5c-bc4e-4628-a0fc-830ba316316d
main
fgau 15 years ago
parent 09599aab2a
commit 90eaa81f2d

@ -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…
Cancel
Save