fix(backups): return correct snapshots per service

pull/35/head
Houkime 2023-06-01 12:44:14 +00:00 committed by Inex Code
parent 761b6be4e5
commit 44ddd27e84
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):