From a0d8947d6b37516ae7f9651f094d34d3ccd28f5e Mon Sep 17 00:00:00 2001 From: jaskaranSM <37726998+jaskaranSM@users.noreply.github.com> Date: Wed, 30 Oct 2019 21:04:32 +0530 Subject: [PATCH] list: fix bug --- bot/modules/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/list.py b/bot/modules/list.py index 20e0530..d5390d0 100644 --- a/bot/modules/list.py +++ b/bot/modules/list.py @@ -8,7 +8,7 @@ from bot.helper.telegram_helper.bot_commands import BotCommands @run_async def list_drive(update, context): message = update.message.text - search = message.split(' ')[1] + search = message.replace('/list ','') LOGGER.info(f"Searching: {search}") gdrive = GoogleDriveHelper(None) msg = gdrive.drive_list(search)