From 5598159626a3258196b5d0011427448566f31048 Mon Sep 17 00:00:00 2001 From: jaskaranSM <37726998+jaskaranSM@users.noreply.github.com> Date: Sat, 4 Jan 2020 07:46:23 +0530 Subject: [PATCH] Refactor parse logic --- 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 f8697be..bef678c 100644 --- a/bot/modules/list.py +++ b/bot/modules/list.py @@ -9,7 +9,7 @@ from bot.helper.telegram_helper.bot_commands import BotCommands @run_async def list_drive(bot,update): message = update.message.text - search = message.replace('/list ','') + search = message.split(' ',maxsplit=1)[1] LOGGER.info(f"Searching: {search}") gdrive = GoogleDriveHelper(None) msg = gdrive.drive_list(search)