From 3d28d1eac0a8f382f2a27da4af5f5954e1f203ac Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 13 Oct 2023 18:12:49 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/gdrivesync.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/gdrivesync.py b/pwnagotchi/plugins/default/gdrivesync.py index 579bf90c..7c8e7376 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -61,6 +61,7 @@ class GdriveSync(plugins.Plugin): if not self.backup: # Use self.options['backup_folder'] as the folder ID where backups are stored backup_folder_id = self.get_folder_id_by_name(self.drive, self.options['backup_folder']) + logging.info("test1") if not backup_folder_id: # If the folder doesn't exist, create it @@ -114,9 +115,7 @@ class GdriveSync(plugins.Plugin): file_list = drive.ListFile( {'q': "title='" + folder_name + "' and mimeType='application/vnd.google-apps.folder' and trashed=false"}).GetList() if file_list: - logging.info("test") return file_list[0]['id'] - logging.info("test2") return None def on_unload(self, ui):