unsure
This commit is contained in:
0
app/search/__init__.py
Normal file → Executable file
0
app/search/__init__.py
Normal file → Executable file
4
app/search/views.py
Normal file → Executable file
4
app/search/views.py
Normal file → Executable file
@@ -8,9 +8,7 @@ from datetime import datetime
|
||||
|
||||
from app.classes.auth import Auth_User
|
||||
from app.classes.customer import Customer_Customer, Customer_Customer_schema
|
||||
from app.classes.service import Service_Call, Service_Call_schema
|
||||
from app.classes.employee import Employee_Employee
|
||||
from app.classes.service import Service_Call_Notes_Dispatcher, Service_Call_Notes_Technician
|
||||
from app.classes.delivery import Delivery_Delivery, Delivery_Delivery_schema
|
||||
|
||||
|
||||
@@ -31,7 +29,7 @@ def search_customers():
|
||||
search = search[1:]
|
||||
customer_list = (db.session
|
||||
.query(Customer_Customer)
|
||||
.filter(Customer_Customer.customer_first_name.ilike(search))
|
||||
.filter(Customer_Customer.customer_last_name.ilike(search))
|
||||
.all())
|
||||
|
||||
elif search_type == '!':
|
||||
|
||||
Reference in New Issue
Block a user