print search query

This commit is contained in:
user 2025-03-07 12:18:39 +03:00
parent d911870c99
commit 6886abec1a
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ async def t_inline_query_node_content(query: types.InlineQuery, memory=None, use
cid = ContentId.deserialize(args)
content_list = []
content = db_session.query(StoredContent).filter_by(hash=cid.content_hash_b58).first()
search_query = {'hash': cid.content_hash_b58}
make_log("InlineSearch", f"Searching with query '{search_query}'.", level='info')
content = db_session.query(StoredContent).filter_by(**search_query).first()
content_prod = content.open_content(db_session)
# Get both encrypted and decrypted content objects
encrypted_content = content_prod['encrypted_content']