Skip to content

Commit 9f21009

Browse files
committed
Beautification
1 parent 6eb0ad9 commit 9f21009

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

weaviate/collections/batch/grpc_batch_objects.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ def pack_vector(vector: Any) -> bytes:
5555
return [
5656
batch_pb2.BatchObject(
5757
collection=obj.collection,
58-
vector_bytes=(
59-
pack_vector(obj.vector)
60-
if obj.vector is not None and not isinstance(obj.vector, dict)
61-
else None
62-
),
6358
uuid=str(obj.uuid) if obj.uuid is not None else str(uuid_package.uuid4()),
6459
properties=(
6560
self.__translate_properties_from_python_to_grpc(
@@ -70,6 +65,11 @@ def pack_vector(vector: Any) -> bytes:
7065
else None
7166
),
7267
tenant=obj.tenant,
68+
vector_bytes=(
69+
pack_vector(obj.vector)
70+
if obj.vector is not None and not isinstance(obj.vector, dict)
71+
else None
72+
),
7373
vectors=(
7474
_pack_named_vectors(obj.vector)
7575
if obj.vector is not None and isinstance(obj.vector, dict)

0 commit comments

Comments
 (0)