mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 01:06:43 +00:00
refactor(backups): remove the by-service getting of cached snapshots
This commit is contained in:
parent
6004977845
commit
f804c88fa6
|
@ -328,10 +328,6 @@ class Backups:
|
||||||
# expiring cache entry
|
# expiring cache entry
|
||||||
Storage.cache_snapshot(snapshot)
|
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
|
### Autobackup
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue