refactor(backups): delete sync_service_snapshots

pull/35/head
Houkime 2023-06-26 18:50:37 +00:00
parent b9be0be6a2
commit 4ad4c3cc67
1 changed files with 0 additions and 9 deletions

View File

@ -338,15 +338,6 @@ class Backups:
snapshots = Storage.get_cached_snapshots()
return [snap for snap in snapshots if snap.service_name == service_id]
@staticmethod
def sync_service_snapshots(service_id: str, snapshots: List[Snapshot]):
for snapshot in snapshots:
if snapshot.service_name == service_id:
Storage.cache_snapshot(snapshot)
for snapshot in Backups.get_cached_snapshots_service(service_id):
if snapshot.id not in [snap.id for snap in snapshots]:
Storage.delete_cached_snapshot(snapshot)
### Autobackup
@staticmethod