fix(backups): return correct snapshots per service

This commit is contained in:
Houkime 2023-06-01 12:44:14 +00:00 committed by Inex Code
parent 761b6be4e5
commit 44ddd27e84

View file

@ -255,7 +255,7 @@ class Backups:
upstream_snapshots = Backups.provider().backuper.get_snapshots() upstream_snapshots = Backups.provider().backuper.get_snapshots()
Backups.sync_service_snapshots(service_id, upstream_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 @staticmethod
def restore_service_from_snapshot(service: Service, snapshot_id: str): def restore_service_from_snapshot(service: Service, snapshot_id: str):