Skip to content

Commit

Permalink
Merge branch 'main' into task/WI-200--onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
rstijerina authored Oct 23, 2024
2 parents 0bbbff2 + aaead94 commit 595c53e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions designsafe/apps/nco/managers/ttc_grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def ttc_grants(self, params=None):
query['Type'] = params['grant_type']
if params['text_search']:
query['$or'] = [
{'Title': {'$regex': params['text_search']}},
{'Abstract': {'$regex': params['text_search']}},
{'PiName': {'$regex': params['text_search']}},
{'Title': {'$regex': params['text_search'], '$options': 'i'}},
{'Abstract': {'$regex': params['text_search'], '$options': 'i'}},
{'PiName': {'$regex': params['text_search'], '$options': 'i'}},
]

#get the grants list
Expand Down

0 comments on commit 595c53e

Please sign in to comment.