From 79e58a9e19eed18fe355586e11afe43d090ac526 Mon Sep 17 00:00:00 2001 From: yasir Date: Tue, 24 Jan 2023 10:14:08 +0700 Subject: [PATCH] Add pypi search --- misskaty/plugins/pypi_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misskaty/plugins/pypi_search.py b/misskaty/plugins/pypi_search.py index acb73984..56ed3572 100644 --- a/misskaty/plugins/pypi_search.py +++ b/misskaty/plugins/pypi_search.py @@ -29,7 +29,7 @@ async def getDataPypi(msg, kueri, CurrentPage, user): extractbtn = [] pypiResult = f"#Pypi Results For: {kueri}\n\n" for c, i in enumerate(PYPI_DICT[msg.id][0][index], start=1): - pypiResult += f"{c}. {i['name']}\nCreated: {i['created']}\nDesc: {i['description']}\n\n" + pypiResult += f"{c}. {i['name']} {i['version']}\nCreated: {i['created']}\nDesc: {i['description']}\n\n" extractbtn.append( InlineButton(c, f"pypidata#{CurrentPage}#{c}#{user}#{msg.id}") ) @@ -107,4 +107,4 @@ async def pypi_getdata(_, callback_query): except Exception as err: await editPesan(callback_query.message, f"ERROR: {err}", reply_markup=keyboard) return - await editPesan(callback_query.message, res, reply_markup=keyboard) + await editPesan(callback_query.message, msg, reply_markup=keyboard)