print search query
This commit is contained in:
parent
d911870c99
commit
6886abec1a
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Reference in New Issue