mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 20:11:30 +00:00
fix(backups): return correct snapshots per service
This commit is contained in:
parent
761b6be4e5
commit
44ddd27e84
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue