mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-24 17:56:44 +00:00
refactor(backups): straighten get_all_snapshots
This commit is contained in:
parent
4ad4c3cc67
commit
f8029d133a
|
@ -292,9 +292,8 @@ class Backups:
|
||||||
# TODO: the oldest snapshots will get expired faster than the new ones.
|
# TODO: the oldest snapshots will get expired faster than the new ones.
|
||||||
# How to detect that the end is missing?
|
# How to detect that the end is missing?
|
||||||
|
|
||||||
upstream_snapshots = Backups.provider().backupper.get_snapshots()
|
|
||||||
Backups.sync_all_snapshots()
|
Backups.sync_all_snapshots()
|
||||||
return upstream_snapshots
|
return Storage.get_cached_snapshots()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_snapshot_by_id(id: str) -> Optional[Snapshot]:
|
def get_snapshot_by_id(id: str) -> Optional[Snapshot]:
|
||||||
|
|
Loading…
Reference in a new issue