Skip to content

Commit 80e2a99

Browse files
authored
Merge pull request #153 from ddxv/main
Fix didnt get saved
2 parents fda2c0c + e462bae commit 80e2a99

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

backend/api_app/controllers/apps.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ def get_search_results(state: State, search_term: str) -> AppGroupByStore:
7979
if decoded_input[-1] == "+":
8080
decoded_input = decoded_input[:-1]
8181
df = search_apps(state, search_input=decoded_input, limit=60)
82-
logger.info(df)
83-
logger.info(df.columns)
8482
df = extend_app_icon_url(df)
8583
logger.info(f"{decoded_input=} returned rows: {df.shape[0]}")
8684
apple_apps_dict: list[AppDetail] = df[df["store"].str.startswith("Apple")].to_dict(

backend/dbcon/queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def get_company_follow_lookup(state: State, company_domain: str) -> pd.DataFrame
857857
def search_apps(state: State, search_input: str, limit: int = 100) -> pd.DataFrame:
858858
"""Search apps by term in database."""
859859
logger.info(f"App search: {search_input=}")
860-
search_input = search_input.replace("+", " & ")
860+
search_input = " & ".join(search_input.replace("+", " ").split())
861861
apps = pd.read_sql(
862862
sql.search_apps,
863863
state.dbcon.engine,

0 commit comments

Comments
 (0)