From 09f9bba08d6faee6239f841508d8bf698e99280f Mon Sep 17 00:00:00 2001 From: Kostiantyn Stoliarskyi Date: Mon, 12 Jun 2023 14:37:52 +0300 Subject: [PATCH] fix test --- app/views/book/collection.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/book/collection.py b/app/views/book/collection.py index 33fe592..9cd8941 100644 --- a/app/views/book/collection.py +++ b/app/views/book/collection.py @@ -99,15 +99,13 @@ def collection_create(book_id: int, collection_id: int | None = None): log(log.INFO, "Create collection [%s]. Book: [%s]", collection, book.id) + collection.save() # notifications if current_user.id != book.owner.id: collection_notification( m.Notification.Actions.CREATE, collection.id, book.owner.id ) # ------------- - - collection.save() - for access_group in collection.parent.access_groups: m.CollectionAccessGroups( collection_id=collection.id, access_group_id=access_group.id