From c8456f0fac08269a708c73be564b64e3a6215f22 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 28 Feb 2025 16:00:41 +0300 Subject: [PATCH] fixes --- app/api/routes/content.py | 7 ++----- app/core/background/indexer_service.py | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/api/routes/content.py b/app/api/routes/content.py index 257579f..f66c475 100644 --- a/app/api/routes/content.py +++ b/app/api/routes/content.py @@ -179,8 +179,8 @@ async def s_api_v1_content_friendly_list(request): result += f""" - {content.cid} - {metadata['title']} + {content.cid.serialize_v2()} + {metadata.get('name', "")} {content.meta.get('item_address')} Preview @@ -191,8 +191,5 @@ async def s_api_v1_content_friendly_list(request): """ return response.html(result) - - - diff --git a/app/core/background/indexer_service.py b/app/core/background/indexer_service.py index 5ccd81e..378664c 100644 --- a/app/core/background/indexer_service.py +++ b/app/core/background/indexer_service.py @@ -217,7 +217,7 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]: for hint_message in session.query(KnownTelegramMessage).filter( and_( KnownTelegramMessage.chat_id == user.telegram_id, - KnownTelegramMessage.message_type == 'hint', + KnownTelegramMessage.type == 'hint', KnownTelegramMessage.meta.contains({'encrypted_content_hash': encrypted_stored_content.hash}) ) ):