From b78cb42b5251ea1fa70aca8e7e897e5cc8b2813f Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Fri, 5 Apr 2024 11:14:04 +0200 Subject: [PATCH] Return description for basic knowlege bookmark --- server/notes/schema.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/notes/schema.py b/server/notes/schema.py index f57d215f..29aff6ca 100644 --- a/server/notes/schema.py +++ b/server/notes/schema.py @@ -40,8 +40,10 @@ def find_content(content_list, bookmark): content = next(found, None) if content is None: return '' - if content['type'] in ['text_block', 'subtitle', 'solution', 'basic_knowledge']: + if content['type'] in ['text_block', 'subtitle', 'solution']: return content['value'].get('text', '') + if content['type'] in ['basic_knowledge']: + return content['value'].get('description', '') return content_dict.get(content['type'], '') class NoteNode(DjangoObjectType):