Skip to content

Commit

Permalink
Remove conflation of None and '' query in web UI
Browse files Browse the repository at this point in the history
Without this conflation, the behavior of handling
empty string query args can be made more consistent
across the app more easily. A proper message will
be generated to the user if they bypass the frontend
to submit an empty query string.
  • Loading branch information
candleindark committed Mar 25, 2024
1 parent 3f751a4 commit 68dc0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datalad_registry/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def overview(): # No type hints due to mypy#7187.
# as we would add search to individual files.
query = request.args.get("query", None, type=str)
search_error = None
if query:
if query is not None:
lgr.debug("Search by '%s'", query)
try:
criteria = parse_query(query)
Expand Down

0 comments on commit 68dc0e0

Please sign in to comment.