diff options
| author | jwansek <eddie.atten.ea29@gmail.com> | 2025-06-28 23:55:18 +0100 | 
|---|---|---|
| committer | jwansek <eddie.atten.ea29@gmail.com> | 2025-06-28 23:55:18 +0100 | 
| commit | f8051b7e2825e8f94f355ce835f6f1ddd8042e66 (patch) | |
| tree | 1329aeb6036eb4ac1fef6783dbc6d53245dfa008 /autoBackup | |
| parent | 8f68c1bac395719b33640de3cade57e85faae587 (diff) | |
| download | BetterZFSReplication-f8051b7e2825e8f94f355ce835f6f1ddd8042e66.tar.gz BetterZFSReplication-f8051b7e2825e8f94f355ce835f6f1ddd8042e66.zip | |
Removed some redundant functions
Diffstat (limited to 'autoBackup')
| -rw-r--r-- | autoBackup/autoBackup.py | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/autoBackup/autoBackup.py b/autoBackup/autoBackup.py index a0cd841..a45dedf 100644 --- a/autoBackup/autoBackup.py +++ b/autoBackup/autoBackup.py @@ -39,7 +39,7 @@ class TrueNASAPIClient:      @staticmethod      def filter_running_jobs(jobs):          return list(filter( -            lambda i: i["method"] == "replication.run" and i["progress"]["percent"] != 100 and not i["state"] == "FAILED", +            lambda i: i["progress"]["percent"] != 100 and not i["state"] == "FAILED",              jobs          )) @@ -61,9 +61,6 @@ class TrueNASAPIClient:      def get_jobs(self):          return self.base_get("/core/get_jobs") -    def get_running_replication_jobs(self): -        return [i for i in self.get_jobs() if i["method"] == "replication.run" and i["progress"]["percent"] != 100 and not i["state"] == "FAILED"] -          def get_replication_tasks(self):          return list(filter(lambda a: a["name"] in self.replication_task_names, self.base_get("/replication"))) | 
