Skip to content

Commit

Permalink
Update db.py
Browse files Browse the repository at this point in the history
  • Loading branch information
erichare committed Nov 10, 2023
1 parent b78a8f8 commit 28527cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astrapy/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def vector_find_one(
include_similarity=True,
):
# Edge case for field selection
if "$similarity" in fields:
if fields and "$similarity" in fields:
raise ValueError("Please use the `include_similarity` parameter")

# Pre-process the included arguments
Expand Down

0 comments on commit 28527cd

Please sign in to comment.