From ce55416b26b6994406f94a3311919f927d9887e8 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Mon, 26 Jun 2023 19:01:26 +0000 Subject: [PATCH] refactor(backups): straighten get_all_snapshots --- selfprivacy_api/backup/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/selfprivacy_api/backup/__init__.py b/selfprivacy_api/backup/__init__.py index b378ef0..f6d9e0b 100644 --- a/selfprivacy_api/backup/__init__.py +++ b/selfprivacy_api/backup/__init__.py @@ -292,9 +292,8 @@ class Backups: # TODO: the oldest snapshots will get expired faster than the new ones. # How to detect that the end is missing? - upstream_snapshots = Backups.provider().backupper.get_snapshots() Backups.sync_all_snapshots() - return upstream_snapshots + return Storage.get_cached_snapshots() @staticmethod def get_snapshot_by_id(id: str) -> Optional[Snapshot]: