From 959dc9b576ddeeb69de6f367fd381d217a1bccb7 Mon Sep 17 00:00:00 2001 From: Tal Leibman Date: Mon, 28 Dec 2020 10:27:49 +0200 Subject: [PATCH] minor fix --- etebase_fastapi/collection.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etebase_fastapi/collection.py b/etebase_fastapi/collection.py index 20d79e0..6757ac3 100644 --- a/etebase_fastapi/collection.py +++ b/etebase_fastapi/collection.py @@ -70,7 +70,6 @@ class CollectionItemOut(CollectionItemCommon): uid=obj.uid, version=obj.version, encryptionKey=obj.encryptionKey, - etag=obj.etag, content=CollectionItemRevisionInOut.from_orm_context(obj.content, context), ) @@ -91,7 +90,7 @@ class CollectionOut(CollectionCommon): @classmethod def from_orm_context(cls: t.Type["CollectionOut"], obj: models.Collection, context: Context) -> "CollectionOut": - member: CollectionMember = obj.members.get(user=context.user) + member: models.CollectionMember = obj.members.get(user=context.user) collection_type = member.collectionType ret = cls( collectionType=collection_type and collection_type.uid,