From 44ddd27e84789682df82c24a573fc048bae1dc1e Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Thu, 1 Jun 2023 12:44:14 +0000 Subject: [PATCH] fix(backups): return correct snapshots per service --- selfprivacy_api/backup/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/backup/__init__.py b/selfprivacy_api/backup/__init__.py index 4e13ea9..7a3b37d 100644 --- a/selfprivacy_api/backup/__init__.py +++ b/selfprivacy_api/backup/__init__.py @@ -255,7 +255,7 @@ class Backups: upstream_snapshots = Backups.provider().backuper.get_snapshots() Backups.sync_service_snapshots(service_id, upstream_snapshots) - return upstream_snapshots + return [snap for snap in upstream_snapshots if snap.service_name == service_id] @staticmethod def restore_service_from_snapshot(service: Service, snapshot_id: str):