refactor(backups): straighten get_all_snapshots

pull/35/head
Houkime 2023-06-26 19:01:26 +00:00 committed by Inex Code
parent 16a96fe0fa
commit ce55416b26
1 changed files with 1 additions and 2 deletions

View File

@ -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]: