diff --git a/app.py b/app.py index 4c0fba7..fc029d2 100644 --- a/app.py +++ b/app.py @@ -43,7 +43,7 @@ app_ui = ui.page_navbar( ), align="right", ), - selected="intro", + selected="search_engine", fluid=False, title=ui.div(ui.img(src="favicon.ico", width="75dpi", height="75dpi"), ui.h1("Copbird")), diff --git a/src/mod_searchable.py b/src/mod_searchable.py index 3ba4c34..bea73a2 100644 --- a/src/mod_searchable.py +++ b/src/mod_searchable.py @@ -58,7 +58,7 @@ def search_query(query: str, limit: int = 5, sorting_method: str = "score") -> ( result = tweets.iloc[correct_indices] if not len(result): - return None, 0 + return None if limit == -1: limit = len(result)