From 21f0d0b0c1ce170b09628b366f449f15b40b68eb Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 20 Jun 2023 22:50:02 +1000 Subject: [PATCH] fix(db): fix `deserialize_board_record()` It was not adding `cover_image_name` --- invokeai/app/services/models/board_record.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/app/services/models/board_record.py b/invokeai/app/services/models/board_record.py index 16748570c4..bf7a33e8b9 100644 --- a/invokeai/app/services/models/board_record.py +++ b/invokeai/app/services/models/board_record.py @@ -35,8 +35,6 @@ class BoardDTO(BoardRecord): """The number of images in the board.""" - - def deserialize_board_record(board_dict: dict) -> BoardRecord: """Deserializes a board record.""" @@ -44,14 +42,16 @@ def deserialize_board_record(board_dict: dict) -> BoardRecord: board_id = board_dict.get("board_id", "unknown") board_name = board_dict.get("board_name", "unknown") + cover_image_name = board_dict.get("cover_image_name", "unknown") created_at = board_dict.get("created_at", get_iso_timestamp()) updated_at = board_dict.get("updated_at", get_iso_timestamp()) - deleted_at = board_dict.get("deleted_at", get_iso_timestamp()) + # deleted_at = board_dict.get("deleted_at", get_iso_timestamp()) return BoardRecord( board_id=board_id, board_name=board_name, + cover_image_name=cover_image_name, created_at=created_at, updated_at=updated_at, - deleted_at=deleted_at, + # deleted_at=deleted_at, )