Handle backup folder error

This commit is contained in:
Donald Zou
2025-09-11 10:38:30 +08:00
parent 15d51735d2
commit 4644840009
5 changed files with 31 additions and 30 deletions

View File

@@ -903,7 +903,7 @@ class WireguardConfiguration:
"backupDate": datetime.now().strftime("%Y%m%d%H%M%S")
}
def getBackups(self, databaseContent: bool = False) -> list[dict[str: str, str: str, str: str]]:
def getBackups(self, databaseContent: bool = False) -> list[dict[str, str]]:
backups = []
directory = os.path.join(self.__getProtocolPath(), 'WGDashboard_Backup')