From db7e8b51abfc54fef56dec821434079cc07c7897 Mon Sep 17 00:00:00 2001 From: Hafitz Setya <71178188+breakdowns@users.noreply.github.com> Date: Thu, 11 Mar 2021 06:42:23 +0700 Subject: [PATCH] Count search results in telegraph --- bot/helper/mirror_utils/upload_utils/gdriveTools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/helper/mirror_utils/upload_utils/gdriveTools.py b/bot/helper/mirror_utils/upload_utils/gdriveTools.py index d7d1ab5..bd43a32 100644 --- a/bot/helper/mirror_utils/upload_utils/gdriveTools.py +++ b/bot/helper/mirror_utils/upload_utils/gdriveTools.py @@ -504,7 +504,7 @@ class GoogleDriveHelper: orderBy='modifiedTime desc').execute() content_count = 0 if response["files"]: - msg += f'

Results : {fileName}



' + msg += f'

{len(response["files"])} Results : {fileName}



' for file in response.get('files', []): if file.get('mimeType') == "application/vnd.google-apps.folder": # Detect Whether Current Entity is a Folder or File. furl = f"https://drive.google.com/drive/folders/{file.get('id')}"