Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions controllers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,12 @@ async def search_jobs(

skip = (page - 1) * page_size

# Build the filter based on search parameters
filter_conditions = {}

# Handle job title (could be multiple) - Using regex for better matching
# Build the filter based on search parameters
filter_conditions = {}
# Sanitize search parameters
search_params = {k: sanitize_input(v) for k, v in search_params.items() if v}
# Handle job title (could be multiple) - Using regex for better matching
if search_params.get('title'):
if search_params.get('title'):
titles = search_params['title']
if isinstance(titles, list) and titles:
Expand Down