From 4d21b86f64edf3503cbdcd10d124e424d0ba8bea Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sun, 15 Oct 2023 22:18:13 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/gdrivesync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pwnagotchi/plugins/default/gdrivesync.py b/pwnagotchi/plugins/default/gdrivesync.py index 8028aec3..0a993bdb 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -117,6 +117,7 @@ class GdriveSync(plugins.Plugin): self.ready = False def get_latest_backup_file_id(self, backup_folder_id): + backup_folder_id = self.get_folder_id_by_name(self.drive, backup_folder_id) # Retrieve the latest backup file in the Google Drive folder file_list = self.drive.ListFile({'q': f"'{backup_folder_id}' in parents and trashed=false"}).GetList()