fix misprint

This commit is contained in:
user 2024-04-05 14:01:24 +03:00
parent 0830a0b2eb
commit d0b66115a1
1 changed files with 3 additions and 1 deletions

View File

@ -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()}'
}
])