Count search results in telegraph

This commit is contained in:
Hafitz Setya 2021-03-11 06:42:23 +07:00 committed by GitHub
parent 1d809560d5
commit db7e8b51ab
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,7 +504,7 @@ class GoogleDriveHelper:
orderBy='modifiedTime desc').execute()
content_count = 0
if response["files"]:
msg += f'<h4>Results : {fileName}</h4><br><br>'
msg += f'<h4>{len(response["files"])} Results : {fileName}</h4><br><br>'
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')}"