|
|
@ -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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|