Skip to content

Commit

Permalink
ui: strip space from search string (pinterest#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
meowcodes authored Jul 11, 2023
1 parent 148d96b commit e158ea9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions querybook/server/datasources/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def search_datadoc(

query = construct_datadoc_query(
uid=current_user.id,
keywords=keywords,
keywords=keywords.strip(),
filters=filters,
fields=fields,
limit=limit,
Expand Down Expand Up @@ -66,7 +66,7 @@ def search_query(

query = construct_query_search_query(
uid=current_user.id,
keywords=keywords,
keywords=keywords.strip(),
filters=filters,
limit=limit,
offset=offset,
Expand Down Expand Up @@ -100,7 +100,7 @@ def search_tables(
filters.append(["metastore_id", metastore_id])

query = construct_tables_query(
keywords=keywords,
keywords=keywords.strip(),
filters=filters,
fields=fields,
limit=limit,
Expand Down Expand Up @@ -167,7 +167,7 @@ def search_board(

query = construct_board_query(
uid=current_user.id,
keywords=keywords,
keywords=keywords.strip(),
filters=filters,
fields=fields,
limit=limit,
Expand Down

0 comments on commit e158ea9

Please sign in to comment.