mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-11 18:39:30 +00:00
refactor(backups): remove the by-service getting of cached snapshots
This commit is contained in:
parent
bae81b2f69
commit
7147f97077
|
@ -328,10 +328,6 @@ class Backups:
|
|||
# expiring cache entry
|
||||
Storage.cache_snapshot(snapshot)
|
||||
|
||||
@staticmethod
|
||||
def get_cached_snapshots_service(service_id: str) -> List[Snapshot]:
|
||||
snapshots = Storage.get_cached_snapshots()
|
||||
return [snap for snap in snapshots if snap.service_name == service_id]
|
||||
|
||||
### Autobackup
|
||||
|
||||
|
|
Loading…
Reference in a new issue