Skip to content

Commit b5acda3

Browse files
✨ feat: add all_backups method to Application in app.py
1 parent 4644edc commit b5acda3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

squarecloud/app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .data import (
1212
AppData,
1313
Backup,
14+
BackupInfo,
1415
DeployData,
1516
DomainAnalytics,
1617
FileInfo,
@@ -647,3 +648,7 @@ async def set_custom_domain(self, custom_domain: str):
647648
self.id, custom_domain, avoid_listener=True
648649
)
649650
return response
651+
652+
async def all_backups(self):
653+
backups: list[BackupInfo] = await self.client.all_app_backups(self.id)
654+
return backups

0 commit comments

Comments
 (0)