mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-26 03:01:16 +00:00
refactor(backups): also batch the forget_all_snapshots command
This commit is contained in:
parent
409d4fc2bb
commit
35a7497855
1 changed files with 1 additions and 2 deletions
|
@ -629,8 +629,7 @@ class Backups:
|
||||||
"""deliberately erase all snapshots we made"""
|
"""deliberately erase all snapshots we made"""
|
||||||
# there is no dedicated optimized command for this,
|
# there is no dedicated optimized command for this,
|
||||||
# but maybe we can have a multi-erase
|
# but maybe we can have a multi-erase
|
||||||
for snapshot in Backups.get_all_snapshots():
|
Backups.forget_snapshots(Backups.get_all_snapshots())
|
||||||
Backups.forget_snapshot(snapshot)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def force_snapshot_cache_reload() -> None:
|
def force_snapshot_cache_reload() -> None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue