Fix prefetch medium.

master
Tom Hacohen 4 years ago
parent f7858a20b7
commit dcf81aa9ce

@ -55,7 +55,7 @@ class CollectionItemRevisionInOut(BaseModel):
with open(chunk_obj.chunkFile.path, "rb") as f: with open(chunk_obj.chunkFile.path, "rb") as f:
chunks.append((chunk_obj.uid, f.read())) chunks.append((chunk_obj.uid, f.read()))
else: else:
chunks.append((chunk_obj.uid,)) chunks.append((chunk_obj.uid, None))
return cls(uid=obj.uid, meta=bytes(obj.meta), deleted=obj.deleted, chunks=chunks) return cls(uid=obj.uid, meta=bytes(obj.meta), deleted=obj.deleted, chunks=chunks)

Loading…
Cancel
Save