From dcf81aa9ceeca7b56f84f47028ef05eda2980406 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 28 Dec 2020 18:17:41 +0200 Subject: [PATCH] Fix prefetch medium. --- etebase_fastapi/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etebase_fastapi/collection.py b/etebase_fastapi/collection.py index 6c7d9a4..07780ae 100644 --- a/etebase_fastapi/collection.py +++ b/etebase_fastapi/collection.py @@ -55,7 +55,7 @@ class CollectionItemRevisionInOut(BaseModel): with open(chunk_obj.chunkFile.path, "rb") as f: chunks.append((chunk_obj.uid, f.read())) 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)