From 8054bb00d8f73dfed709202dc97da465faffb6b5 Mon Sep 17 00:00:00 2001 From: raliao Date: Wed, 28 Jun 2023 21:20:28 +0900 Subject: [PATCH] Support backup debug info --- python/mujinwebstackclient/webstackclient.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/mujinwebstackclient/webstackclient.py b/python/mujinwebstackclient/webstackclient.py index 826c503..44aa893 100644 --- a/python/mujinwebstackclient/webstackclient.py +++ b/python/mujinwebstackclient/webstackclient.py @@ -973,7 +973,7 @@ def DeleteAllITLPrograms(self, timeout=5): # Backup restore # - def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps=True, saveitl=True, savedetection=False, savecalibration=False, timeout=600): + def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps=True, saveitl=True, savedetection=False, savecalibration=False, savedebug=False, timeout=600): """Downloads a backup file :param saveconfig: Whether we want to include configs in the backup, defaults to True @@ -982,6 +982,7 @@ def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps= :param saveitl: Whether we want to include itl programs in the backup, defaults to True :param savedetection: Whether we want to include detection files in the backup, defaults to False :param savecalibration: Whether we want to include calibration files in the backup, defaults to False + :param savedebug: Whether we want to include debug files in the backup, defaults to False :param backupscenepks: List of scenes to backup, defaults to None :param timeout: Amount of time in seconds to wait before failing, defaults to 600 :raises WebstackClientError: If request wasn't successful @@ -994,6 +995,7 @@ def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps= 'itl': 'true' if saveitl else 'false', 'detection': 'true' if savedetection else 'false', 'calibration': 'true' if savecalibration else 'false', + 'debug': 'true' if savedebug else 'false', 'backupScenePks': ','.join(backupscenepks) if backupscenepks else None, }, timeout=timeout) if response.status_code != 200: