Skip to content

Commit

Permalink
Beautification
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-reiss committed Sep 25, 2024
1 parent 6eb0ad9 commit 9f21009
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions weaviate/collections/batch/grpc_batch_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ def pack_vector(vector: Any) -> bytes:
return [
batch_pb2.BatchObject(
collection=obj.collection,
vector_bytes=(
pack_vector(obj.vector)
if obj.vector is not None and not isinstance(obj.vector, dict)
else None
),
uuid=str(obj.uuid) if obj.uuid is not None else str(uuid_package.uuid4()),
properties=(
self.__translate_properties_from_python_to_grpc(
Expand All @@ -70,6 +65,11 @@ def pack_vector(vector: Any) -> bytes:
else None
),
tenant=obj.tenant,
vector_bytes=(
pack_vector(obj.vector)
if obj.vector is not None and not isinstance(obj.vector, dict)
else None
),
vectors=(
_pack_named_vectors(obj.vector)
if obj.vector is not None and isinstance(obj.vector, dict)
Expand Down

0 comments on commit 9f21009

Please sign in to comment.