Skip to content

Commit

Permalink
omnisearch on string fkey that lacks label
Browse files Browse the repository at this point in the history
fixes #95
  • Loading branch information
cldellow committed Feb 26, 2023
1 parent 37ab134 commit 8a75778
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datasette_ui_extras/omnisearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ def get_results(conn):
if ok_columns and not my_column in ok_columns:
continue

banned_columns[my_column] = True
label_column = await db.label_column_for_table(other_table)
if not label_column:
continue

banned_columns[my_column] = True

def get_results(conn):
return suggest_fkey_results(datasette, conn, db.name, base_table, table, my_column, other_table, other_column, label_column, q)
Expand Down

0 comments on commit 8a75778

Please sign in to comment.