From 1e60938430884fb8a8cf9d0d1710e92894d81bb4 Mon Sep 17 00:00:00 2001 From: Tal Leibman Date: Sat, 26 Dec 2020 18:02:29 +0200 Subject: [PATCH] rename --- etebase_fastapi/collection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etebase_fastapi/collection.py b/etebase_fastapi/collection.py index b4246ca..9e64072 100644 --- a/etebase_fastapi/collection.py +++ b/etebase_fastapi/collection.py @@ -82,7 +82,7 @@ async def list_multi( return response -class CollectionItemContent(BaseModel): +class CollectionItemRevision(BaseModel): uid: str meta: bytes deleted: bool @@ -94,7 +94,7 @@ class Item(BaseModel): version: int etag: t.Optional[str] encryptionKey: t.Optional[bytes] - content: CollectionItemContent + content: CollectionItemRevision class CollectionIn(BaseModel): @@ -103,7 +103,7 @@ class CollectionIn(BaseModel): item: Item -def process_revisions_for_item(item: models.CollectionItem, revision_data: CollectionItemContent): +def process_revisions_for_item(item: models.CollectionItem, revision_data: CollectionItemRevision): chunks_objs = [] revision = models.CollectionItemRevision(**revision_data.dict(exclude={"chunks"}), item=item)