mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -8,7 +8,7 @@ import pydrive2
|
||||
from pydrive2.auth import GoogleAuth
|
||||
from pydrive2.drive import GoogleDrive
|
||||
from threading import Lock
|
||||
from pwnagotchi.utils import StatusFile, parse_version as version_to_tuple
|
||||
from pwnagotchi.utils import StatusFile
|
||||
import zipfile
|
||||
|
||||
|
||||
@ -172,7 +172,6 @@ class GdriveSync(plugins.Plugin):
|
||||
with self.lock:
|
||||
if not self.ready and not self.internet:
|
||||
return
|
||||
try:
|
||||
if self.status.newer_then_hours(self.options['interval']):
|
||||
logging.debug("[update] last check happened less than %d hours ago" % self.options['interval'])
|
||||
return
|
||||
@ -199,8 +198,6 @@ class GdriveSync(plugins.Plugin):
|
||||
self.status.update()
|
||||
display = agent.view()
|
||||
display.update(force=True, new_data={'Backing up to gdrive ...'})
|
||||
except Exception as e:
|
||||
logging.error(f"[gDriveSync] Error during handshake processing: {e}")
|
||||
|
||||
def backup_files(self, paths, dest_path):
|
||||
for src_path in paths:
|
||||
|
Reference in New Issue
Block a user