From 2ec34c03f9764f29961130245962e5f2480d352d Mon Sep 17 00:00:00 2001 From: SvyatoslavArtymovych Date: Tue, 20 Jun 2023 16:07:38 +0300 Subject: [PATCH] hotfix stats --- app/templates/book/components/book_list_item.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/book/components/book_list_item.html b/app/templates/book/components/book_list_item.html index c1b7569..95160f0 100644 --- a/app/templates/book/components/book_list_item.html +++ b/app/templates/book/components/book_list_item.html @@ -21,7 +21,7 @@ class="flex flex-col md:flex-row text-gray-500 dark:text-gray-400" > {% if type(book) == m.BookVersion %} - {% set updated_by = book.updated_by_user if book.updated_by else book.owner %} + {% set updated_by = book.updated_by_user if book.updated_by else book.book.owner %} {% set updated_at = book.updated_at %} {% else %} {% set updated_by = book.active_version.updated_by_user if book.updated_by else book.owner %}