refactor(backups): delete sync_service_snapshots

pull/35/head
Houkime 2023-06-26 18:50:37 +00:00 committed by Inex Code
parent f2161f0532
commit 16a96fe0fa
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