Skip to content

Remove rich.print debug output from search queries - #24

Merged
matthewberry merged 1 commit into
mainfrom
mjberry/remove-rich-prints
Oct 22, 2026
Merged

matthewberry merged 1 commit into
mainfrom
mjberry/remove-rich-prints

Conversation

@matthewberry

Copy link
Copy Markdown
Contributor

Closes #22.

Removes the two rich.print calls in app/db/queries.py and the import rich that only they used:

  • build_conditions: printed each string filter column and its user-supplied values (5 lines per request)
  • get_filtered_data: printed the full SQL of every data query

No other code in app/ uses rich (git grep -n -w rich -- . ':!uv.lock' finds only the pyproject.toml dependency). That dependency is left in place for now.

Verified: pytest passes (2 tests). ruff check app/db/queries.py reports the same 4 errors it does on main (an unused import and f-strings without placeholders); none are from this change.

Note: #20 has the {query=} line as surrounding context, so merging both may need a small conflict fix.

@matthewberry
matthewberry merged commit 6e0591a into main Oct 22, 2026
1 check passed
@matthewberry
matthewberry deleted the mjberry/remove-rich-prints branch October 22, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove rich.print debug output from search queries

1 participant