From 4339d3929258f605ccfd464685522b3d6e418cd1 Mon Sep 17 00:00:00 2001 From: "ran.liao" Date: Wed, 16 Aug 2023 16:20:13 +0900 Subject: [PATCH 1/2] Support backup logs and stats --- python/mujinwebstackclient/webstackclient.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/mujinwebstackclient/webstackclient.py b/python/mujinwebstackclient/webstackclient.py index 0119e443..6ad397a9 100644 --- a/python/mujinwebstackclient/webstackclient.py +++ b/python/mujinwebstackclient/webstackclient.py @@ -998,7 +998,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, savedebug=False, timeout=600): + def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps=True, saveitl=True, savedetection=False, savecalibration=False, savedebug=False, savelog=False, savestat=False, timeout=600): """Downloads a backup file :param saveconfig: Whether we want to include configs in the backup, defaults to True @@ -1008,6 +1008,8 @@ def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps= :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 savelog: Whether we want to include log files in the backup, defaults to False + :param savestat: Whether we want to include stat 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 @@ -1021,6 +1023,8 @@ def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps= 'detection': 'true' if savedetection else 'false', 'calibration': 'true' if savecalibration else 'false', 'debug': 'true' if savedebug else 'false', + 'log': 'true' if savelog else 'false', + 'stat': 'true' if savestat else 'false', 'backupScenePks': ','.join(backupscenepks) if backupscenepks else None, }, timeout=timeout) if response.status_code != 200: From b70e20356d0cbebc7f9275d4e9d97b3fcd54dc01 Mon Sep 17 00:00:00 2001 From: "ran.liao" Date: Wed, 16 Aug 2023 16:21:56 +0900 Subject: [PATCH 2/2] Update changelog and version --- CHANGELOG.md | 4 ++++ python/mujinwebstackclient/version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90b681ec..c1b2e10a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.8.0 (2023-08-16) + +- Support backup logs and stats + # 0.7.1 (2023-07-27) - Handle new webstack semantic version format. diff --git a/python/mujinwebstackclient/version.py b/python/mujinwebstackclient/version.py index e6e3b235..5a495962 100644 --- a/python/mujinwebstackclient/version.py +++ b/python/mujinwebstackclient/version.py @@ -1,4 +1,4 @@ -__version__ = '0.7.1' +__version__ = '0.8.0' # Do not forget to update CHANGELOG.md