Skip to content

Commit

Permalink
shows the contact for incoming calls
Browse files Browse the repository at this point in the history
git-svn-id: http://www.neo1973-germany.de/svn@248 46df4e5c-bc4e-4628-a0fc-830ba316316d
  • Loading branch information
fgau committed Feb 18, 2009
1 parent 09599aa commit 90eaa81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion epydial/epydial.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def show_contacts_screen(class_):
def check_new_call(class_, newmap):
def CallStatus(newmap):
newmap = dedbusmap(newmap)
print '---', 'CallStatus'
print '---', 'CallStatus', newmap

def CallRing(newmap):
newmap = dedbusmap(newmap)
Expand Down
2 changes: 1 addition & 1 deletion epydial/incall_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def on_gsm_number_display(self, number):
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]

Expand Down

0 comments on commit 90eaa81

Please sign in to comment.