fix: query

This commit is contained in:
Himanshu Warekar 2019-08-21 16:09:35 +05:30
parent c6e02e2a74
commit 81f20891c1

View File

@ -54,7 +54,7 @@ def get_employees_with_number(number):
if employee_emails: return employee_emails
employees = frappe.get_all('Employee', filters={
'cell_number': ['like', '%{}'.format(number.lstrip('0'))],
'cell_number': ['like', '{}'.format(number.lstrip('0'))],
'user_id': ['!=', '']
}, fields=['user_id'])