Skip to content

Commit

Permalink
Support backup debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
LLipter committed Jun 28, 2023
1 parent e99b400 commit 8054bb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/mujinwebstackclient/webstackclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 8054bb0

Please sign in to comment.