fix misprint
This commit is contained in:
parent
0830a0b2eb
commit
d0b66115a1
|
|
@ -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()}'
|
||||
}
|
||||
])
|
||||
|
|
|
|||
Loading…
Reference in New Issue