Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix mis-matched raw_data type
Browse files Browse the repository at this point in the history
  • Loading branch information
felix committed Sep 25, 2019
1 parent 4f552cc commit ab4143d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/proto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def fill_raw_bytes_to_msg(msg: 'gnes_pb2.Message', msg_data: List[bytes]):
docs = msg.request.train.docs or msg.request.index.docs or [msg.request.search.query]
for d in docs:
if doc_bytes and doc_bytes[d_idx]:
if doc_byte_type == 'raw':
if doc_byte_type == 'raw_bytes':
d.raw_bytes = doc_bytes[d_idx]
d_idx += 1
elif doc_byte_type == 'raw_image':
Expand Down

0 comments on commit ab4143d

Please sign in to comment.