fix(backups): return correct snapshots per service

restic-rewrite-api
Houkime 2023-06-01 12:44:14 +00:00
parent 4b07d4de41
commit f7c0821675
1 changed files with 1 additions and 1 deletions

View File

@ -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):