mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-10 21:13:11 +00:00
chore(backup): make a comment into a docstring
This commit is contained in:
parent
5ea000baab
commit
408284a69f
|
@ -97,9 +97,12 @@ class Backup:
|
|||
snapshots = Backups.get_all_snapshots()
|
||||
return [snapshot_to_api(snap) for snap in snapshots]
|
||||
|
||||
# A query for seeing which snapshots will be restored when migrating
|
||||
@strawberry.field
|
||||
def last_slice(self) -> typing.List[SnapshotInfo]:
|
||||
"""
|
||||
A query for seeing which snapshots will be restored when migrating
|
||||
"""
|
||||
|
||||
if not Backups.is_initted():
|
||||
return []
|
||||
return [snapshot_to_api(snap) for snap in which_snapshots_to_full_restore()]
|
||||
|
|
Loading…
Reference in a new issue