mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-11 10:29:30 +00:00
fix(backups): return correct snapshots per service
This commit is contained in:
parent
4b07d4de41
commit
f7c0821675
|
@ -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