commit | cb75eface07b4674349d87653ea7a490f428e1e0 | [log] [tgz] |
---|---|---|
author | Wei-Yu Chen <weiyu@opennetworking.org> | Fri Jan 14 02:00:12 2022 +0800 |
committer | Wei-Yu Chen <weiyu@opennetworking.org> | Fri Jan 14 02:00:12 2022 +0800 |
tree | 12182e57d7d43171f53f044b90a8db87fefde2cb | |
parent | 84cbc36ccc2aaff5457a36a80fd3094ea14a65e8 [diff] |
Add clear command when download finished Change-Id: I610fd257eed78922b4b14dddc3b39f5bf15db70c
diff --git a/cbrs_backup.py b/cbrs_backup.py index 69a08bc..70359f1 100644 --- a/cbrs_backup.py +++ b/cbrs_backup.py
@@ -82,3 +82,13 @@ f.write(chunk) print(f"{filename} log backup at {timestamp}.") + + +clean_payload = { + "this_file": "logsave.htm", + "next_file": "logsave.htm", + "todo": "logClear", +} + +r = session.post(CGI_URL, data=clean_payload) +print(f"{serial_number} log cleared.")