From d0b66115a132e7371003d4707f666c0355d0d868 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 5 Apr 2024 14:01:24 +0300 Subject: [PATCH] fix misprint --- app/bot/routers/content.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/bot/routers/content.py b/app/bot/routers/content.py index ebb43f1..ad17cea 100644 --- a/app/bot/routers/content.py +++ b/app/bot/routers/content.py @@ -28,13 +28,15 @@ async def t_callback_owned_content(query: types.CallbackQuery, memory=None, user make_log("OwnedContent", f"Metadata content: {metadata_content.filepath}") with open(metadata_content.filepath, 'r') as f: metadata_content_json = json.loads(f.read()) + + make_log("OwnedContent", f"Metadata content: {metadata_content_json}") except BaseException as e: make_log("OwnedContent", f"Can't get metadata content: {e}", level='warning') continue content_list.append([ { - 'text': metadata_content_json['title'], + 'text': metadata_content_json['name'], 'callback_data': f'NC_{content.cid.content_hash.hex()}' } ])