Santosh Sanjeev
commited on
Commit
·
c0e32b0
1
Parent(s):
8dae1a2
search changed
Browse files
app.py
CHANGED
@@ -533,7 +533,7 @@ def get_page(df, page, column=None, query=None):
|
|
533 |
if column in DROPDOWN_COLUMNS:
|
534 |
filtered = filtered.filter(pl.col(column) == query)
|
535 |
else:
|
536 |
-
filtered = filtered.filter(pl.col(column).str.contains(query.lower().strip(), literal=
|
537 |
start = page*ROWS_PER_PAGE
|
538 |
page_df = filtered[start:start+ROWS_PER_PAGE].to_pandas().fillna("")
|
539 |
total_rows = filtered.height
|
|
|
533 |
if column in DROPDOWN_COLUMNS:
|
534 |
filtered = filtered.filter(pl.col(column) == query)
|
535 |
else:
|
536 |
+
filtered = filtered.filter(pl.col(column).str.contains(query.lower().strip(), literal=True))
|
537 |
start = page*ROWS_PER_PAGE
|
538 |
page_df = filtered[start:start+ROWS_PER_PAGE].to_pandas().fillna("")
|
539 |
total_rows = filtered.height
|