Skip to content

Commit 695557e

Browse files
committed
Simplified Peewee code
1 parent 1a568d7 commit 695557e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgvector/peewee/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def python_value(self, value):
1919
return from_db(value)
2020

2121
def _distance(self, op, vector):
22-
return Expression(lhs=self, op=op, rhs=Value(vector, converter=to_db, unpack=False))
22+
return Expression(lhs=self, op=op, rhs=self.to_value(vector))
2323

2424
def l2_distance(self, vector):
2525
return self._distance('<->', vector)

0 commit comments

Comments
 (0)