diff --git a/backend/api_app/controllers/apps.py b/backend/api_app/controllers/apps.py index 36bb179..20bf869 100644 --- a/backend/api_app/controllers/apps.py +++ b/backend/api_app/controllers/apps.py @@ -27,6 +27,7 @@ def get_search_results(search_term: str) -> AppGroup: decoded_input = urllib.parse.unquote_plus(search_term) df = search_apps(search_input=decoded_input, limit=20) + logger.info(f"{decoded_input=} returned rows: {df.shape[0]}") apps_dict = df.to_dict(orient="records") app_group = AppGroup(title=search_term, apps=apps_dict) return app_group diff --git a/backend/dbcon/queries.py b/backend/dbcon/queries.py index 9c8a669..2557c67 100644 --- a/backend/dbcon/queries.py +++ b/backend/dbcon/queries.py @@ -443,7 +443,6 @@ def get_app_history(store_app: int) -> pd.DataFrame: def search_apps(search_input: str, limit: int = 100): logger.info(f"App search: {search_input=}") search_pattern = f"%{search_input}%" - sel_query = """ SELECT sa.*, @@ -466,7 +465,6 @@ def search_apps(search_input: str, limit: int = 100): ) if not df.empty: df = clean_app_df(df) - return df